i have the problem that i want to add the class "not-editable-row" to a row based on a cell value in the same line, but it is not working. For testing i have tried "ui-state-error" and that is working. Does anyone know why the cells are still editable after i have added the class?
colNames:['city','country'],
colModel:[
{name:'city',index:'city', width:80,editable:true},
{name:'country',index:'country', width:80,editable:true},
],
......
loadComplete: function () {
var ids = grid.jqGrid('getDataIDs');
for (var i=0;i<ids.length;i++) {
var id=ids[i];
if (grid.jqGrid('getCell',id,'city') !== 'Berlin') {
$('#' + $.jgrid.jqID(id)).addClass('not-editable-row');
$('#' + $.jgrid.jqID(id)).addClass('ui-state-error');
}
}
},
Thanks for your help, Felix