According to the documentation, the error handling arguments are the same as for $.ajax(). But this appears not to be the case, as the 2nd and 3rd parameters are always null. What arguments can we expect?
2 Answers, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 26 Jul 2012, 08:38 AM
Hello Morad,
I have already replied to your question in the support ticket that you submitted on the same subject. I will paste my reply here as well, so the other users who are interested in error handling could read it.
The error event of the dataSource has only one argument and the $.ajax() error information is part of it. You should expect one argument which will contain the ajax error data.
error: function(e) {
e.xhr //jqXHR
e.status //textStatus
e.errorThrown //errorThrown
e.sender //the dataSource client object
}
To avoid any duplication, I would like to ask you to continue our conversation in the support thread.
Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!