is there way to set some rows un editable in jqgrid after first edit is done
i tried to add class
not-editable-row
but no luck
this is how i make all rows editable
onSelectRow: function(id){
if(id && id!==lastsel){
grid.jqGrid('restoreRow',lastsel);
grid.editRow(id,true);
lastsel=id;
}
}
any help would be great
Thanks
You don’t posted the code which you use to add the ‘not-editable-row’ class to the row (
<tr>element).I suppose that what you need is just do this inside of
aftersavefuncevent handler of the editRow. So you should replace thegrid.editRow(id,true)to the following:See the demo.