hi,
we are setting grid cell background colours in xml and are using the following line of code to turn off your code that makes all odd rows blue:
grid.enableAlterCss("","");
however, this also takes off the grid lines but we need the grid lines to show, do you have a way we can do this please
thanks
You can set row’s background via xml:
Please see more information about xml structure here dhtmlx.com/docs/products/docsExp … lGrid.html
HI
thanks for the reply,
i am already setting the background colour as you explained in your answer, however that is not the problem. the problem is that when the grid is built it still puts the odd lines as blue which is in your css. i wrote to your support and they told me to use grid.enableAlterCss("",""); which gets rid of the odd coloured rows.
i have done that and all is fine but no the grid lines do not show, can you please tell me how to make the grid lines show
thanks
Grid lines defined as part of skin, for light and modern skin they fully disabled ( by default, colors of alt rows create the same effect )
You can
a) not use grid.enableAlterCss("",""); , but use
Color defined in such way has higher priority than one defined for alter-rows
or
b) you can add next style to the page
div.gridbox table.obj td {
border-bottom: 1px solid lightgrey !important;
}
excellent, thanks