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

[Solved] changing grid data in angular

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 25 Oct 2014, 08:11 AM
Hi, I have a data grid bound to an ObservableArray

The data in this grid may get refreshed every 10 seconds or so, but I would like to keep the current options of the grid intact (sorting , columns etc)  when presenting this new data

Any clues ? ;)

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 28 Oct 2014, 01:16 PM
Hello Julian,

I will recommend you to use the data() method of the Kendo UI Grid's dataSource, so you can change the data that is displayed in the grid, like this:

http://dojo.telerik.com/aNoba

Another option is to use k-rebind, that will rerender the grid when an option is changed, however this can cause some visible blink:

http://docs.telerik.com/kendo-ui/AngularJS/introduction#updating-widgets-when-options-change

Regards,
Kiril Nikolov
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
Julian
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or