EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thecyberzone on May 04, 2019, 07:31:45 AM



Title: Datagrid header style customize
Post by: thecyberzone on May 04, 2019, 07:31:45 AM
I want to change the font of the datagrid header, sometimes color, sometimes font shape programmatically. Please let me know how I can control individual column header style programmatically.

Thanks in advance.


Title: Re: Datagrid header style customize
Post by: stworthy on May 05, 2019, 07:33:15 AM
Please look at this topic https://www.jeasyui.com/forum/index.php?topic=3854.0


Title: Re: Datagrid header style customize
Post by: thecyberzone on May 06, 2019, 12:16:52 AM
Thank you.

I have got it.

Code:
var dg = $('#dg1');
var td = dg.datagrid('getPanel').find('div.datagrid-header td[field="Attended"]');
td.css('background-color','#00ff00');