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

Question about the Transport. Kendo + Backbone + OData

3 Answers 23 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Santiago
Top achievements
Rank 1
Santiago asked on 17 Sep 2015, 07:02 PM

Hi guys. 

 

We are kind of new in using kendo a GUI framework. We are used to use Ext.net, but we decided to change it. I'll try to explain what we have to see if you can help us out.

Our current application design is the following: Kendo for GUi. Backbone as the client MVVM framework and OData is where we get most of our data. We have an .WCF WebApi for writing stuff.

 

I'm using the kendo-backbone library to integrate Kendo with Backbone. 

 

Here is an example of what i'm trying to achieve: http://dojo.telerik.com/iKOsu

The problem that i'm facing is that the filter attribute that is sending to the OData endpoint, doesn't have the filter correctly formatted.

Probably i'm missing some configuration or not using it as it should. 

I tried to set the parameterMap in the configuration of the datasource, so i can transform the filters. But when i do that i lose the full collection's url path. (It's overriding the backbone transport?)

 If you can help me out with this issue i'll be more than helpful.

 

PS: Sorry for the grammar and bad explanation :P

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 21 Sep 2015, 10:36 AM

Hello Santiago,

 

the easiest thing you can do in that case is to assign the new properties to the passed data object and return the passed data object itself; in this way, you won't lose any existing data passed. 

 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jigar
Top achievements
Rank 1
answered on 21 Sep 2015, 03:50 PM

Hi,
I have created data source to connect online web service but when i run the code than in output just page is loading no data is rendering 
 This is the code:

app.js code 

function onDeviceReady(){
    navigator.splashscreen.hide();

}

var employeeData;
employeeData = new kendo.data.DataSource(
    {

        type:"odata",
        endlessScroll:true,
        batch:false,
        transport:{

            read:{
            url:"http://services.odata.org/V4/Northwind/Northwind.svc/Customers",
            dataType:"jsonp",

            data:{

                Accept:"application/json"
            }

        }

        }    
    });

 

 

 

0
Rosen
Telerik team
answered on 23 Sep 2015, 10:59 AM

Hello Jigar,

We have already provided you with an answer to your question in the forum thread you have opened on this matter.

Regards,
Rosen
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
Santiago
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Jigar
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or