Kendo gridview and web api odata

I'm having trouble submitting my kendo grid using my web api. The call causes the following:

/odata?$callback=jQuery19101822532636579126_1364840583015&%24inlinecount=allpages&%24format=json&%24top=20 

but the answer is:

 The query parameter '$callback' is not supported. 

Does anyone have experience in this scenario?

  dataSource: { type: "odata", transport: { read: "odata/mydata" }, 
+6
source share
2 answers

I managed to get around this by setting both OData and JSON data types at different configuration levels

 dataSource: { type: "odata", transport: { read: { url: "/odata/FXDatas", dataType: "json" } } }, 
+3
source

Most likely, you have configured to use JSONP instead of JSON, and your service does not support JSONP, since it requires manual implementation. Do not use JSONP, it works for cross-domain requests and has several limitations.

+1
source

All Articles