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

CRUD Ops With KendoUI Grid

5 Answers 243 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
CG
Top achievements
Rank 1
CG asked on 16 Mar 2012, 02:07 PM
Hello again ninjas,

Looking for some guidance with getting a KendoUI grid to support CRUD operations, using data services generated by the wizard.  I've followed the example below to get started, I'm able to read data but am now turning my attention towards editing.

http://blogs.telerik.com/joshuaholt/posts/12-02-07/getting-started-with-kendoui-and-openaccess-orm.aspx 

I'm lost with how to Add, Edit and Delete records.  I've refactored my dataSource code to include transports for update, destroy and create using your KendoUI samples to get me rolling.  Your KendoUI grid samples have /Update, /Destroy and /Create URLs set for each transport.  I'm not sure what my transport urls would be set to.  Attempting to use /Update, /Destroy and /Create results in the following error message.

The request URI is not valid. Since the segment 'Persons' refers to a collection, this must be the last segment in the request URI. All intermediate segments must refer to a single resource. 

Any hints to get me moving in the right direction?

Many thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 20 Mar 2012, 10:55 AM
Hello Chris, 

 Unfortunately this blog post does not mention one of the limitation of the Kendo DataSource, that is it currently cannot handle update, insert or delete operations when bound to an OData service such as the WCF Data Service that you have implemented. 

Fortunately we have an example that actually does this. Though it is bound to a WCF Endpoint service. You can find it in this github repository

I hope this helps. Do let us know if this does not work out for you. 
 
Greetings,
Serge
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
0
CG
Top achievements
Rank 1
answered on 20 Mar 2012, 06:48 PM
Thank you Serge,

I noticed you said "not currently".  Does this mean that OData support is on the road-map?

A WCF endpoint solution should be fine to get me rolling though, thank you for the information.
0
Serge
Telerik team
answered on 21 Mar 2012, 02:14 PM
Hello Chris,

 As far as I know it is a part of their plan, however I am not sure when they will get to it. I will suggest though that you ask for the expected delivery date on their forums.
 
Kind regards,
Serge
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
0
RainerAtSpirit
Top achievements
Rank 1
answered on 12 Apr 2012, 02:38 PM
JFYI: I stumbled over this recently and it has an Odata example with CRUD support.
https://github.com/telerik/kendo-examples-asp-net/

Enjoy,

Rainer
0
Serge
Telerik team
answered on 13 Apr 2012, 12:14 PM
Hello Rainer, 

 Thanks for sharing this example with the community. It is appreciated.
 
Greetings,
Serge
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
Tags
Web Services
Asked by
CG
Top achievements
Rank 1
Answers by
Serge
Telerik team
CG
Top achievements
Rank 1
RainerAtSpirit
Top achievements
Rank 1
Share this question
or