I want to disable row cell in Jqgrid in loadcomplete . I am using this code:
loadComplete: function () {
var ids = $grid.jqGrid('getDataIDs');
for (var i = 0; i < ids.length; i++) {
var rowId = ids[i];
var rowData = $grid.jqGrid('getRowData', rowId);
if (rowData.IsActive) {
rowData.Save.attr("disabled", true); //Error comes here
}
}
}
if is active cell is true i want to disable col cell save disabled. If condition running fine but in " rowData.Save.attr("disabled", true);" (Save is the column name) it does not work. It show error it is not a function. How can i do ths?