hi,
I want to give backgroud color to a cell when the cell is selected in Dhtml grid .Please suggest.
Thanks
can be done as
mygrid.attachEvent(“onRowSelect”,fucntion(id,ind){
mygrid.setCellTextStyle(id,ind,“background-color:red;”)
return true;
});
Above code works for setting background color of a selectedcell. How to reset the color back to original when cell is not selected anymore.
Thanks.
I want to give backgroud color to a cell when the cell is selected in Dhtml grid
Instead of setting color by js code, you can redefine selection color in css, for default skin it will be
div.gridbox table.obj tr.rowselected td.cellselected, div.gridbox table.obj td.cellselected {
background-color:red;
}
dhtmlx.com/docs/products/dhtmlxG … _cust_skin