I am trying to show a server error to a user on JqGrid
here is my code:
function addRow() {
$("#updateList").jqGrid('editGridRow', "new", {
editData: {
Year: function () { return $('#year option:selected').val(); }
}
, afterSubmit: function (response, postdata) { return [false, "fdfdfdfd", "141"]; }
, height: 400, width: 400, reloadAfterSubmit: true
});
}
I get json error from server with StatusCode 500 I just wanted to check, so I put
return [false, "fdfdfdfd", "141"]
But I always see the default error message
"Error:" error ". Error code: 500"
This is a new line adding a model form. not inline editing.
Thanks for any help ...
source
share