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

Double results when updating grid dataSource?

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 03 Apr 2012, 05:30 PM
If you take a look at this fiddle:

http://jsfiddle.net/nYN8G/ 

You can see it sets the first fiddle to be user1. It then updates the datasource to be user2. However, it seems that it is just appending the secondary data source. Is this correct? How would I properly swap the data source?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 04 Apr 2012, 12:13 PM
Hello Kyle,

I suggest using the data method of the dataSource in order to rebind the grid. In case you want to read the original data again, you could call the read method.

I modified your sample to illustrate this approach, please check it here.

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
Grid
Asked by
Kyle
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or