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);
}
You can get string with original style via DOM:
var style=mygrid.cellById(rowId,cellIndex).cell.style.cssText;