Updated jqgrid version from 5.1 to latest from Github
I am using the cell edit afterSubmitCell to show a error based on server response.
|
1 2 3 4 5 6 7 8 9 |
afterSubmitCell:function(serverresponse, rowid, cellname, value, iRow, iCol){ s = serverresponse.responseText; if ($.trim(s) != 1){ return [false,s] } else{ return [true,""]; } } |
If the server returned a message other than 1 then it should display message and return false on cell edit. but I am getting the following error in console
jQuer.jqGrid.js:5788
Uncaught ReferenceError: res is not defined
at Object.complete (jquery.jqGrid.js:5788)
at j (jquery-min.js?v=2.1.4:2)
at Object.fireWith (jquery-min.js?v=2.1.4:2)
at x (jquery-min.js?v=2.1.4:4)
at XMLHttpRequest. (jquery-min.js?v=2.1.4:4)
The error corresponds to this
$($t).triggerHandler("jqGridErrorCell", [res, stat, err]);
am I missing something, any help would be appreciated
jqGrid Customer
Kris
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top