Categories | Question details Back To List | ||
alter css and grid lines 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 Answer posted by dhxSupport on Feb 23, 2009 00:55 You can set row's background via xml: <row id="1" bgColor="blue"> Please see more information about xml structure here http://dhtmlx.com/docs/products/docsExplorer/doc/dhtmlxxml/xmlGrid.html Answer posted on Feb 23, 2009 04:20 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 Answer posted by Support on Feb 23, 2009 06:21 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 <row id="1" style="background-color: blue;"> 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; } Answer posted on Feb 23, 2009 06:24 excellent, thanks |