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

How can I get just the array data out of KendoUI

1 Answer 177 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kurt
Top achievements
Rank 1
Kurt asked on 11 Nov 2013, 06:36 PM
So I'm using dataTables since I really like the functionaloty, but I'm having problems pulling the data.. only kendoUI can pull the data from a Yii url structure for instance this one url:"<?php echo Yii::app()->createUrl('gridData/dataContactLog?customer_id='.$model->id); ?>",  so I just want to get data from kendoUI and put it in dataTables plugin thhanks!

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 13 Nov 2013, 10:21 AM
Hello Kurt,

The Kendo component that is responsible for data operations is called DataSource. You can obtain its data array via the data method. The method will return an ObservableArray, if you would like to transform it into standard JavaScript array please use the toJSON method.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Kurt
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or