I am currently using the Infragistics JQuery Grid with server side CRUD operation. In update method, having validation and it throws the error. I would like to get this error message in UI side.
I have given the fail and requestError event but it doesn't seems to fire when service error occurs
$("#grid1").igGrid({ requestError: function (evt, ui) { alert('error'); } });
editCellStarted: function (evt, ui) { if (ui.column === 0) { ui.editor.igEditor("value", numberOfRows()); } / var rowAdding = ui.rowAdding; logEvent("editCellStarted event fired. Column Key = " + ui.columnKey); }, fail: function () { alert("error"); }, requestError: function () { alert("error"); }
In the below image you could see the error message in fire bug. But i could not get this message in the UI
Hi,
requestError event is used by GET requests for igGrid i.e. when data binding is performed. The reason that requestError is not fired for you is that you're using igGridUpdating which is different widget which doesn't know about requestError event. Unfortunately igGridUpdating doesn't have event for error handling yet.
In your scenario you can use jQuery global .ajaxError() event to listen for Ajax errors and you can execute your custom logic there.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
Thanks for your reply.
Done using JQuery $.ajax() method for update
Thanks
Renga