Hi all
I'm trying to build in some nice error handling into my datasource for my Kendo grid.
error: function (e) {
error = JSON.parse(e.responseText);
alert(error.ErrorMessage);
dataSource.cancelChanges();
}
When my DESTROY URL returns an error, this works fine.
But when my READ URL returns an error, e contains 3 arguments where the first object is the error object I want to use.
Why is the e object not the same?
Best regards,
Allan
I'm trying to build in some nice error handling into my datasource for my Kendo grid.
error: function (e) {
error = JSON.parse(e.responseText);
alert(error.ErrorMessage);
dataSource.cancelChanges();
}
When my DESTROY URL returns an error, this works fine.
But when my READ URL returns an error, e contains 3 arguments where the first object is the error object I want to use.
Why is the e object not the same?
Best regards,
Allan