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

Grid underlying data updates

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Szymon
Top achievements
Rank 1
Szymon asked on 24 Mar 2014, 08:56 PM
I have an array of JavaScript ascript objects that I am setting as the data source on a Kendo UI Grid.  When an update come in to one of the JavaScript objects, how can I update the values in the grid? 

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 25 Mar 2014, 11:31 AM
Hello Szymon,

After widget is initialized it will copy the JavaScript array and transform it into observable array that will be used as DataSource. That means that any changes in the original array will not affect the Grid. Instead of changing the original array I would recommend working directly with the DataSource. The component provides variety of method which allow the developer to edit the data. All method are listed in the API reference:
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
Szymon
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or