This question is locked. New answers and comments are not allowed.
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..
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
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
am experiencing the same problem, any update yet?
thanks in advance,
Gert-Jan
0
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
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
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.
I just changed the wcf data service url and the fields (as per the DB) in the kendo grid.
Still not working.
0
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
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
the html
0
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
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
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.
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
Me too have the same problem