Author Topic: Change Class of Header Cell  (Read 2469 times)

wmwa

  • Pro Economy
  • Newbie
  • *
  • Posts: 19
    • View Profile
Change Class of Header Cell
« on: April 28, 2015, 07:48:38 pm »
I am looking for a way to apply the 'ui-state-active' style to a header cell based on some outside criteria.

Adding a class to the colModel seems to affect the table cells, and not the header cell. Any way to do this through PQ functions? Or will I have to use straight jQuery to try to find it?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6282
    • View Profile
Re: Change Class of Header Cell
« Reply #1 on: April 28, 2015, 08:20:55 pm »
cls property of column adds a class to the whole column including the header.

Affecting the style of header cell, body cell or both depends upon how the css rule for that class is written.

There is a related topic here

http://paramquery.com/forum/index.php?topic=952

And here is demo where header cells are affected by the class

http://paramquery.com/pro/demos/readonly_cells