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

Data not shown in kendo grid from remote data source

10 Answers 352 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pranoti
Top achievements
Rank 1
Pranoti asked on 09 Dec 2011, 10:22 AM
Creating a kendo grid from remote data source which is a odata wcf data service.
clicking on data service url shows the data in browser. however not showing the data in kendo grid.

Please check the code below and point me what am I missing here..

$(document).ready(

 

function() {

 

$(

 

"#grid").kendoGrid({

 

dataSource: {

type:

 

"odata",

 

transport: {

read:

 

"http://localhost:61766/WebSite1/WcfDataService.svc/Suppliers"

 

},

schema: {

model: {

fields: {

SupplierID: { type:

 

"number" },

 

ContactName: { type:

 

"string" }

 

}

}

},

pageSize: 10,

serverPaging:

 

true,

 

serverFiltering:

 

true,

 

serverSorting:

 

true

 

},

height: 250,

filterable:

 

true,

 

sortable:

 

true,

 

pageable:

 

true,

 

columns: [{

field:

 

"SupplierID",

 

filterable:

 

false

 

},

 

 

"ContactName"

 

]

});

 


10 Answers, 1 is accepted

Sort by
0
Gert-jan
Top achievements
Rank 1
answered on 13 Dec 2011, 10:34 PM
Hi,

am experiencing the same problem, any update yet?

thanks in advance,
Gert-Jan
0
Nikolay Rusev
Telerik team
answered on 14 Dec 2011, 08:56 AM
Hello,

Here is an example of binding grid to remote OData service. Please make sure that the Grid is setup correctly and that the service returns the data in the expected format.

Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gert-jan
Top achievements
Rank 1
answered on 14 Dec 2011, 09:48 AM
Hi Nikolay ,

thanks for the update. I actually used that example to connect to my odata wcf data service (just like pranoti) and only changed the reference to my odata service and the fields. I checked all the field types and still getting no data. If you want I can send you the code.

thanks,
GJ
0
Pranoti
Top achievements
Rank 1
answered on 14 Dec 2011, 10:42 AM
Exactly same here...
I just changed the wcf data service url and the fields (as per the DB) in the kendo grid.
Still not working.
0
Nikolay Rusev
Telerik team
answered on 14 Dec 2011, 01:11 PM
Hello GJ,

It will be best if you could send us sample, otherwise we will not be able to assist you further.

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gert-jan
Top achievements
Rank 1
answered on 14 Dec 2011, 01:18 PM
0
Nikolay Rusev
Telerik team
answered on 14 Dec 2011, 02:10 PM
Hello Gert-Jan,

As far as I can see your OData service does not return JSONP. You can read more details and a sample how to implement a sample service bellow:
http://www.kendoui.com/blogs/archive/11-08-23/cross-domain_queries_to_odata_services_with_jquery.aspx
http://archive.msdn.microsoft.com/DataServicesJSONP/Release/ProjectReleases.aspx?ReleaseId=5660

Best wishes,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gert-jan
Top achievements
Rank 1
answered on 14 Dec 2011, 04:12 PM
Thas was indeed the problem,

thanks for the quick and correct support !

regards,
Gert-Jan
0
Ashish
Top achievements
Rank 1
answered on 19 Dec 2012, 06:49 AM
My Code is still not working.

Can you provide the sample code for dataservice.

I am attaching the soucre code. please suggest me where i am doing wrong.
0
Deepa
Top achievements
Rank 1
answered on 16 May 2013, 05:15 AM
Hi,

Me too have the same problem 
Tags
Grid
Asked by
Pranoti
Top achievements
Rank 1
Answers by
Gert-jan
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Pranoti
Top achievements
Rank 1
Ashish
Top achievements
Rank 1
Deepa
Top achievements
Rank 1
Share this question
or