This is a migrated thread and some comments may be shown as answers.

error raised for 200 status code when body contains a property named errors

2 Answers 220 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Koffi
Top achievements
Rank 1
Koffi asked on 19 Jul 2012, 01:49 PM
Why is the datasource firing the error event when the response body contains a property named errors?

The error is not raised if I change the property name. 

2 Answers, 1 is accepted

Sort by
0
Paolo
Top achievements
Rank 1
answered on 15 May 2018, 01:29 PM

Hi

look at this https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/events/error#error

I have another request, could Telerik update that page putting in the fact a status code 200 is required to populate the e.errors property ?

 

 

0
Dimitar
Telerik team
answered on 18 May 2018, 01:04 PM
Hello,

In general, If the the server response contains "errors" field, then the error event of the DataSource will be fired. This can be observed on the following Dojo example and is explained in greater details in the DataSource's API Reference.

Concerning the status code query - the errors field of the event argument contains the errors returned by the server and is set only if the response from the server contains this field. We will double check the documentation and try to add additional information to make this more clear.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Data Source
Asked by
Koffi
Top achievements
Rank 1
Answers by
Paolo
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or