enter image description hereIn "successfunc" the else part should retain the row in editable mode ...
var editparameters= {
"keys": true,
"oneditfunc": function () {
debugger;
$("select#" + arrprimarykey + "_StateName").val(rowData.StateCode);
},
"successfunc": function (data) {
debugger;
var msg = JSON.parse(data.responseText).Message;
var msgType = JSON.parse(data.responseText).MsgType;
if (msgType == "S") {
alert(msg);
$(CityMaster.idGrid).jqGrid('setGridParam', { datatype: 'json' }).trigger('reloadGrid');
} else {
alert(msg)
HERE RESTORE TO INLINE EDITABLE MODE THE ROW ,AGAIN IF ERROR RETURN FROM SERVER
}
},
"url": CityMaster.EditUrl,
"extraparam": {},
"aftersavefunc": function (data) {
debugger;
},
"errorfunc": null,
"afterrestorefunc": function (data) {
debugger;
$(CityMaster.idGrid).jqGrid('setGridParam', { datatype: 'json' }).trigger('reloadGrid');
},
"restoreAfterError": true,
"mtype": "POST"
}
jQuery(CityMaster.idGrid).jqGrid('editRow', arrprimarykey, editparameters);
In "successfunc" the else part should retain the row in editable mode ...