Categories | Question details Back To List | ||
how to get the original style back to row/col once setCellTextStyle Hello, i need to check for value in a particular column in a grid. I have done this using onEditCell event function like bellow. if(grid.cells(rowidx, COL_ID_QTY).getValue()!='0') { grid.setCellTextStyle(rowidx,COL_ID_QTY,"background-color:#b63e06;"); } else { backgroundColor = "#ffffff;"; if(grid.getRowIndex(rowidx)*1%2) backgroundColor = "#edeae0;"; grid.setCellTextStyle(rowidx,colidx,"background-color:"+backgroundColor); grid.selectRow(grid.getRowIndex(rowidx),false,false,true); } Answer posted by dhxSupport on Mar 20, 2009 06:37 You can get string with original style via DOM: var style=mygrid.cellById(rowId,cellIndex).cell.style.cssText; |