EasyUI Forum
September 14, 2025, 04:39:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid header style customize  (Read 10548 times)
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 05, 2019, 07:33:15 AM »

Please look at this topic https://www.jeasyui.com/forum/index.php?topic=3854.0
Logged
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« Reply #2 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');
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!