Sure. In the demo http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/rowediting.htm?light , I use the commit() callback with a boolean argument, based on the result of my AJAX call. No problems there.
The issue that I’m pointing out is that updaterow() is called, even when existing (ESC key) the row editor without changing any rows. Since we haven’t made any changes, I would expect this method not to be called, since nothing has changed. I think of this like the old JS confirm dialog, where hitting Cancel does not fire the event code.
if (window.confirm("Commit the records?")) {
/* Did not exit, so do something */
}
Just my thoughts. I’ll explore a work-a-round this behavior isn’t implemented.