Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kendo gridview and web api odata

Having issues feeding my kendo grid with my web api. The call generates this:

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

but the response is:

The query parameter '$callback' is not supported.

Anyone has experience with this scenario?

 dataSource: {
               type: "odata",
               transport: {
               read: "odata/mydata"
              },
like image 366
LastTribunal Avatar asked Apr 01 '13 18:04

LastTribunal


1 Answers

I managed to workaround this by setting both OData and JSON datatypes at different levels of the configuration

dataSource: {
  type: "odata",
  transport: {
    read: {
      url: "/odata/FXDatas",
      dataType: "json"
    }
  }
},
like image 172
Malcolm Swaine Avatar answered Jan 02 '23 22:01

Malcolm Swaine