You cannot delete a call class using the standard jqGrid method. So you have to do it manually:
var iCol = getColumnIndexByName(grid,"ColumnName"),
tr = grid[0].rows.namedItem(rowid), // grid is defined as grid=$("#grid_id")
td = tr.cells[iCol];
$(td).removeClass("my-style-class");
where getColumnIndexByNameis a simple function that gets the column index by column name:
var getColumnIndexByName = function(grid,columnName) {
var cm = grid.jqGrid('getGridParam','colModel');
for (var i=0,l=cm.length; i<l; i++) {
if (cm[i].name===columnName) {
return i;
}
}
return -1;
}
See the demo here .
: jqGrid iColByName, getColumnIndexByName, iColByName jqGrid, .
var p = grid.jqGrid("getGridParam"),
iCol = p.iColByName["ColumnName"],
cm = p.colModel[iCol];
. , jqGrid jqGrid 4.8. GitHub jqGrid 4.9-beta1, .