1 The property column in the cell is set to editable.
2 Click the Edit button, triggering a row set to edit state.
JQuery ("#rowed4"). Jqgrid ({url: ' server.php?q=2 ', datatype: "JSON", colnames:[' Inv No ', ' Date ', ' Client ', ' Amount ', ' Tax ', ' total ', ' Notes '], colmodel:[{name: ' id ', index: ' id ', width:55}, {name: ' invdate ', index: ' invdate ', Width: Editable:true}, {name: ' name ', index: ' Name ', width:100,editable:true}, {name: ' Amount ', Index: ' Amount ', width:80 , align: "Right", editable:true}, {name: ' tax ', Index: ' tax ', width:80, align: ' right ', editable:true}, {name: ' Total ' , index: ' Total ', width:80,align: ' Right ', editable:true}, {name: ' Note ', index: ' Note ', width:150, Sortable:false,editab
Le:true}], Rownum:10, rowlist:[10,20,30], pager: ' #prowed4 ', sortname: ' id ', viewrecords:true,
SortOrder: "desc", Editurl: "server.php", Caption: "Full Control"});
jquery ("#ed4"). Click (function () {jQuery ("#rowed4"). Jqgrid (' Editrow ', "13");
this.disabled = ' true ';
JQuery ("#sved4"). attr ("disabled", false);
}); JQuery ("#sved4"). Click (function () {JquerY ("#rowed4"). Jqgrid (' Saverow ', ' checksave ');
JQuery ("#sved4"). attr ("Disabled", true);
JQuery ("#ed4"). attr ("disabled", false);
});
function Checksave {if (result.responsetext== "") {alert ("Update is missing!");
return true;
}