Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rajakrishna on Jan 21, 2009 06:36
open dhtmlx forum
:: DHX Grid :: Disable Change of color on row click.

Hi there,

When I click on particular row of the grid, it changes the color of whole row.
I want disable this feature means it should retain original row color. How to do this ?
Answer posted by Support on Jan 21, 2009 06:39
The row color change is visual representation of row selection. 
You can 
a) block selection at all
grid.attachEvent("onBeforeSelect",function(){return false });

or 
b) just remove or change next css rule from dhtmlxgrid.css
div.gridbox table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected {
    background-color:#d8d8d8;
    color:black;
    }
div.gridbox table.obj tr.rowselected td{
    background-color:#e1e0d7;
    color:black;
    }