EasyUI Forum
April 16, 2024, 01:49:44 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: [SOLVED] Datagrid column header color  (Read 6088 times)
jega
Full Member
***
Posts: 190


View Profile
« on: November 16, 2017, 07:48:19 AM »

Have looked at another topic, but can't get this to work

   <thead>
      <tr>
         <th class="headerColor" colspan="4">H1</th>
                        <th colspan="4">H2</th>
         <th class="headerColor" colspan="4">H3</th>
      </tr>

If i use $('.headerColor').css('background','#ccc') it does not make color to H1 and H3

Any help

« Last Edit: November 17, 2017, 04:28:50 AM by jega » Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: November 17, 2017, 12:35:16 AM »

Assign the 'id' property to the columns.
Code:
<th data-options="id:'col1',colspan:4">H1</th>
<style>
  #col1{
    background:#ccc;
  }
</style>
Logged
jega
Full Member
***
Posts: 190


View Profile
« Reply #2 on: November 17, 2017, 04:28:18 AM »

Hi Jarry

Thank you very much. Always fast help.

Regards
Jesper
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!