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

Datasource oData transport

4 Answers 157 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Marius
Top achievements
Rank 1
Marius asked on 14 Aug 2012, 08:00 AM
Is there a way to define the create/update properties of the transport object as functions when using oData?
Right now I'm allways getting Uncaught Error: Only json dataType can be used for create operation.

4 Answers, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 1
answered on 21 Oct 2015, 05:13 PM

Could someone answer this?

I'm getting the same error.

0
Alexander Popov
Telerik team
answered on 26 Oct 2015, 11:35 AM
Hello,

I am afraid this scenario is not supported, however sharing more details about the expected behavior will allow us to give you some advice.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bill
Top achievements
Rank 2
answered on 07 Mar 2016, 11:49 PM

I would like to be able to toast success or error messages based on the response.  

How can this be done using OData with a kendo datasource?

0
Alexander Popov
Telerik team
answered on 10 Mar 2016, 12:56 PM
Hello,

The OData type uses JSONP requests, which do not have error and success handlers. You can try subscribing to the DataSource's requestEnd event handler and check the e.request argument.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Data Source
Asked by
Marius
Top achievements
Rank 1
Answers by
Frank
Top achievements
Rank 1
Alexander Popov
Telerik team
Bill
Top achievements
Rank 2
Share this question
or