How to insert,updat and delete data for WCF RIA JSON endpoint

4 posts, 0 answers
  1. Ricky
    Ricky avatar
    3 posts
    Member since:
    Sep 2008

    Posted 21 Mar 2013 Link to this post

        Do you have the sample file to demo how to insert, update and delete data for WCF RIA JSON endpoint ?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2894 posts

    Posted 25 Mar 2013 Link to this post

    Hello Ricky,

    The only available example which shows KendoUI DataSource integration with WCF service could be downloaded from here.

    Generally speaking, the DataSource works with Json, Jsonp and XML data. If you are able to send and receive data in one of the aforementioned formats you should be able to perform CRUD operations with Kendo Grid.
    In case you need to convert the request parameters to a format suitable for the remote service, you may use the parameterMap function.

    In addition, I believe that you may find the following blog post useful:

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Ricky
    Ricky avatar
    3 posts
    Member since:
    Sep 2008

    Posted 25 Mar 2013 Link to this post

    Hi,Alexander
                   Sorry, I didn't make my question clearly, I just used Silverlight WCF RIA webservice, and I also know how to make the JSON end point.
    For the Grid page, sort and filter I know how to do.
    http://www.kendoui.com/forums/framework/data-source/using-wcf-ria-with-datasource.aspx#boBuMq6aG2OF1P8AAFTdxQ
                   But my question is how to make the insert, update and delete data through parameterMap?
  4. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2894 posts

    Posted 26 Mar 2013 Link to this post

    Hi Ricky,

    I am afraid that your question is a bit unclear. If I understood correctly, you are able to read and display the data, however the create, update and delete operations are not working. Could you please specify what exactly is the problem, do you receive any JavaScript errors?

    parameterMap function is intended to provide opportunity for the developer to customize the request parameters according to the specification of the service. It is responsibility of the developer to convert the parameters into a format suitable for the remote service.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top