3.2.0

Set background color for Muliple Headers

Is there a way to set the background color for multiple headers withOUT using css?

I am simply using the following code to set the second header bg color to red:

grid.getHeaderTemplate().setStyle("background", "red");


How do I set the bg color for the top most header?

Any help would be greatly appreciated.
August 14,
If you are using xp theme - the header background is assigned to the inner box, so the code will look like

grid.getHeaderTemplate().getContent("box").setStyle("background", "red");
Alex (ActiveWidgets)
August 17,
Thank you Alex! The code is working perfectly!
August 20,

This topic is archived.

See also:


Back to support forum