Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Frank on Jan 22, 2009 21:30
open dhtmlx forum
parse data via json, all the rows are the same color

I mean , in your samles , the rows in grid are not the same color. First row is white and second is green third is white....

But if parse from json data, all the rows are white. I cannot figure one row.why?
Answer posted by Support on Jan 23, 2009 01:33
The color in rows in default samples based on skin. 
Please be sure that you have used 
       grid.setSkin(some) 
before loading data in grid. 
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/styles_skins/grid_skinning.html?un=1232703919000

Also, the setting can be set separately from skin, by using enableAlterCss command
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/styles_skins/grid_alter_colors.html?un=1232703966000