Categories | Question details Back To List | ||
DHX Grid : Reset the selected cell Hi there, How to reset the selected cell style through js, means there is a combo box in cell and I dont want the cell style to appear. I have made it dark yellow, but want to reset the cell style for it Answer posted by dhtmlx support on Sep 23, 2008 01:19 There is setCellTextStyle method. You can use it inside onRowSelect event handler. For example: var data = []; mygrid.attachEvent("onRowSelect",function(id,index){ if(data.length) mygrid.setCellTextStyle(data[0],data[1],"color:black"); if(index == 1){ /* if a cell in the second is selected*/ mygrid.setCellTextStyle(id,index,"color:red"); data[0] = id; data[1] = index; } }) |