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

Connecting a grid to Open Access

8 Answers 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 20 Jan 2012, 10:02 PM
Hello,

Is there any up to date tutorial that would explain, step by step, how to create an oData Service with Open Access, then how to consume that oData Service with the KendoUI grid?

Best Regards,

Simon

8 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 20 Jan 2012, 11:56 PM
Maybe I should be more specific about what I'm looking for...

I did generate a SVC file using this tutorial.  However, when I try to consume the WCF Data Service using you Grid example, the grid is drawed correctly, then there's a "Loading Data..." message but then the grid can't retreive any row from my WCF Data Service.

There's no error message but if I change the read option from

read: "http://localhost:61111/MyDomainService.svc/Orders"

to

read: "http://demos.kendoui.com/service/Northwind.svc/Orders"


then everything work as expected.

Is there's any security enabled by default by the OprnAccess Daata Domain that could explain my problem?  If it isn't the case, what can be the causes of this behavior?

Best Regards,

Simon
0
Accepted
Joel
Top achievements
Rank 1
answered on 22 Jan 2012, 02:11 AM
Make sure you have JSONP support added on your sevice using this service behavior : http://archive.msdn.microsoft.com/DataServicesJSONP 

Once installed, the new behavior adds two OData keywords to the RESTful query vocabulary:

$format - which allows explicit control over the response format from the URL (i.e. $format=json)
$callback - which instructs the server to wrap JSON results in a JavaScript function to support JSONP


Joel
0
Simon
Top achievements
Rank 1
answered on 22 Jan 2012, 05:44 PM
Thanks Joel, I'll try to implement it later on this week.

However, it’s a surprise for me to see that the JSONP behavior isn't generated out of the box by Open Access as KendoUI and Open Access are made by the same business…

Simon
0
Simon
Top achievements
Rank 1
answered on 26 Jan 2012, 11:11 PM
Hi Joel,

I did implement the JSONP behavior support and it did fix my problem.

Thanks a lot for pointing out the problem (and the solution).

Simon
0
Sebastian
Telerik team
answered on 09 Feb 2012, 03:48 PM
Hello folks,

You may also find this blog post helpful as it discusses similar subject.

Regards,
Sebastian
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Simon
Top achievements
Rank 1
answered on 09 Feb 2012, 06:44 PM
Great blog post!  Everything is clearly explained.

I wish I had this article 2 weeks ago :)
0
CG
Top achievements
Rank 1
answered on 19 Mar 2012, 04:35 PM
I've managed to get this sample up and running for the read transport.  How do I go about implementing CRUD operations?
0
Iliana Dyankova
Telerik team
answered on 21 Mar 2012, 10:09 AM
Hi Chris,

I believe that  complete CRUD project with OpenAccess and Kendo UI sample will be of help.

All the best,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Joel
Top achievements
Rank 1
Sebastian
Telerik team
CG
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or