Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Eric on Oct 02, 2009 11:23
open dhtmlx forum
Grid initilization from XML - setting row class

Hello,

I'm trying to set the row class when loading the grid from XML.

If I have a css in the page, such as
#row_subtotal {background: azure;}

I want to reference the style class name in the row, such as <row id=some class='row_subtotal'>
but that does not seem to work.

I can set <row id=some style='background-color: azure;'>
and that works, however I want to use the style class reference rather than coding the style directly into the xml.

Thanks for any help.
Regards,
Eric
Answer posted by Stanislav (support) on Oct 05, 2009 03:50
The row has some default styling rules , which may override your custom css class. 
You can 
a) change the class as
.row_subtotal {background: azure !important;}

or 

b) change the name of the css rule as
div.gridbox table.obj tr.row_subtotal td{
       background: azure;
}