EasyUI Forum

General Category => General Discussion => Topic started by: jega on November 16, 2017, 07:48:19 AM



Title: [SOLVED] Datagrid column header color
Post by: jega 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



Title: Re: Datagrid column header color
Post by: jarry 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>


Title: Re: Datagrid column header color
Post by: jega on November 17, 2017, 04:28:18 AM
Hi Jarry

Thank you very much. Always fast help.

Regards
Jesper