Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lalit on Feb 12, 2009 06:06
open dhtmlx forum
dhtmlxgrid header style change with css dynamically

Hi,

I want to set the header_styles property of setHeader() dynamically with CSS.
Currently header_styles requres background color in the form of string ; Is it possible to provide the values in the form of CSS property
th { /* table headers */
    font-weight: bold;
    color: #003366;
    padding: 0px 0px 0px 0px;
    background-color:#eee9e9;
}

I want to set different background color in different css files and dynamically load it as per requirement.

How is it possible ?

Please Comment.
Thanks In Advance.

Regards,
Lalit.


Answer posted by dhxSupport on Feb 12, 2009 08:21
You can manipulate with header’s styles via following css stylesheets:
div.gridbox table.hdr td div.hdrcell – for the outer element of the header
div.gridbox table.hdr td – for the inner element of the header