-
29 Sep 2007 9:14 AM #1
changing the grid column header color
changing the grid column header color
I am new to ext and i need to change the color of few grid column header, to mark that the fields are required fields. Any pointers/links will be of great help.
thanks.
-
29 Sep 2007 4:49 PM #2
When a grid is created, Ext generates a stylesheet for each grid. Use firebug to inspect it to figure out the style you need to override.
-
29 Sep 2007 11:04 PM #3
All grid cells including header cells will get a CSS class "x-grid-td-??" where ?? is the id you specified in the ColumnModel (This defaults to the column's index).
Header cells will also get "x-grid-hd", so use a selector like
Code:.x-grid-hd.x-grid-td-1 { }
-
1 Oct 2007 8:22 AM #4
-
30 Jul 2009 9:51 AM #5
in current EXTJS Version2.X onwards it has changed to
older css class => .x-grid-hd.x-grid-td-??? { ... }
new css class => .x-grid3-hd.x-grid3-td-??? { ... }
where ??? is the id of the grid column as mentioned by Animal


Reply With Quote