I am using jqgrid
to display grid data. For editing I am using inline edit
. What I want is in case of Error
response from sever when POST
request is made, not to restore the edited row
. I want the row to stay in edit form
until the response is without any error
. I have this example which is not working. I red about the same problem in this question Reset again and persist the data of JqGrid Row in Editable mode when some error return from Server. What did I miss in my code ?
$(obj.grid).jqGrid('saveRow', eRowId, {
aftersavefunc: saveRow,
url: ...,
mtype: "POST",
"restoreAfterError": false,
});
var saveRow = function (rowid, response) {
if (response.Error) {
}
else {
return [false, "error message to display the user"];
}
}