So I have a Data Source that creates an object, but depending on parameters the response is either ACCEPTED or OK. How can I determine what he response is in the requestEnd callback?
Or is there a better way to do so?
Many Thanks,
Grant
1 Answer, 1 is accepted
0
Alex Hajigeorgieva
Telerik team
answered on 08 Dec 2016, 09:45 AM
Hello Grant,
To get the status code from the response of the remote service, you may use the parameters of the ajax callbacks success & complete.
Dependent on the configuration of the Kendo UI Data Source, I can think of two options:
- either use the success callback if custom transport is used
- or use the complete callback for the built-in transport
For your convenience, I have prepared a runnable demo at: