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

How to Convert dataSource to JSON to send back to a mvc controller?

2 Answers 1111 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Aleksander
Top achievements
Rank 1
Aleksander asked on 23 Apr 2012, 03:54 PM
How can I convert a datasource which is an array of "object" 3 columns per row in kendoui grid to a json object I can send into an mvc controller?

Thank you,

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Apr 2012, 02:05 PM
Hello Aleksander,

You can use

kendo.stringify( $("#grid").data("kendoGrid").dataSource.view() );

Note that you need the latest internal Kendo build, because there is a bug related to JSON generation in the official release, which is now fixed.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jerry
Top achievements
Rank 1
answered on 28 Apr 2012, 02:51 PM
Is there anyway to get the latest internal build if I don't have a commercial license?  We're trying to evaluate Kendo for purchase, and this bug is blocking our POC.
Tags
Data Source
Asked by
Aleksander
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jerry
Top achievements
Rank 1
Share this question
or