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

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

3 Answers 64 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ricky
Top achievements
Rank 1
Ricky asked on 21 Mar 2013, 02:01 PM
    Do you have the sample file to demo how to insert, update and delete data for WCF RIA JSON endpoint ?

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 25 Mar 2013, 01:17 PM
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!
0
Ricky
Top achievements
Rank 1
answered on 26 Mar 2013, 01:15 AM
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?
0
Alexander Valchev
Telerik team
answered on 26 Mar 2013, 05:22 PM
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!
Tags
Data Source
Asked by
Ricky
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Ricky
Top achievements
Rank 1
Share this question
or