Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 07, 2008 03:59
open dhtmlx forum
Background color of header

How can we set the background color of the header?
I'm also using "attachHeader" functionality".

The syntax that i'm using is
Response.write "<column> Data </Column>"
-
-
-
-
Response.Write "<afterInit>"
    Response.Write "<call command=""attachHeader"">"
    Response.Write "<param>" & NewData & "</param>"
    Response.Write "</call>"
Response.Write "</afterInit>"

Could you please suggest me on how to set the background color for the header?
Answer posted by Support on May 08, 2008 08:53
There is no way to assign custom styles for main grid header , when header initialized from XML.
If you need to change all colors - you can change them once and for all in CSS file

As possible workaround you can use inline HTML
    Response.write "<column><![CDATA[<div style="width:100%; background-color:red;"> Data </div>]]></Column>"