Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Robert Cushing on Sep 18, 2009 11:14
open dhtmlx forum
Disable Row / Column Selection - GRID

I was wondering if there was any API call or method to disable the grid from changing CSS when you click or select a row:

div.gridbox table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected {
    background-color:#FFFFFF;
    color:#333333;
    }
div.gridbox table.obj tr.rowselected td{
    background-color:#FFFFFF;
    color:333333;
    }

As you can see I am setting it to my regular background and text color of the grid, so the user does not really see a difference. However, I am using the highlight row API call. The problem is that the highlight color goes away upon click.

So, my goal is to disable the change upon click.

Any ideas or suggestions?

Thanks,
Robert
Answer posted by dhxSupport on Sep 21, 2009 03:20
You can edit dhtmlxgrid.css file and delete all background-color definition from classes which contain "rowselected" or "cellselected"