Hi,
I want to add a global error handler that gets called when any AJAX call made by a Kendo control fails. So I have a kendo window opening as a popup that has a grid that has regular methods like read, update. It has url's pointing to WCF services. Now I want to catch errors in my global handler that may come from my WCF calls. I tried using $.ajaxerror but its not getting called for kendo calls, for others its working. I also tried the following code but it didnt work:
kendo.data.DataSource.prototype.options.error = function (e) {
//your logic
alert('kendo error');
};
So can you please point to me how to add global error handler for my ajax calls from kendo controls.
Thanks in advance.
I want to add a global error handler that gets called when any AJAX call made by a Kendo control fails. So I have a kendo window opening as a popup that has a grid that has regular methods like read, update. It has url's pointing to WCF services. Now I want to catch errors in my global handler that may come from my WCF calls. I tried using $.ajaxerror but its not getting called for kendo calls, for others its working. I also tried the following code but it didnt work:
kendo.data.DataSource.prototype.options.error = function (e) {
//your logic
alert('kendo error');
};
So can you please point to me how to add global error handler for my ajax calls from kendo controls.
Thanks in advance.