CRUD Ops With KendoUI Grid

6 posts, 0 answers
  1. CG
    CG avatar
    6 posts
    Member since:
    Jan 2006

    Posted 16 Mar 2012 Link to this post

    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.
  2. Serge
    Admin
    Serge avatar
    375 posts

    Posted 20 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. CG
    CG avatar
    6 posts
    Member since:
    Jan 2006

    Posted 20 Mar 2012 Link to this post

    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.
  5. Serge
    Admin
    Serge avatar
    375 posts

    Posted 21 Mar 2012 Link to this post

    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 >>
  6. RainerAtSpirit
    RainerAtSpirit avatar
    4 posts
    Member since:
    Jul 2009

    Posted 12 Apr 2012 Link to this post

    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
  7. Serge
    Admin
    Serge avatar
    375 posts

    Posted 13 Apr 2012 Link to this post

    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 >>
Back to Top
DevCraft banner