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

Editing an element on a sorted/filtered kendodatasource

1 Answer 30 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Guillermo
Top achievements
Rank 1
Guillermo asked on 18 Apr 2013, 07:15 PM
Hi all, it seems that there is a weird bug when trying to edit an element on a sorted/filtered data source, both the element that will be in the previous position of the edited element and the edited element by itself in the new position gets updated with the new values. 

I found that clearing the filter first and then resorting/refiltering will solve it. 
datasource.filter([]);
var c  = datasource.get(id);
c.set("Property", "New Value");
datasource.filter([{
field: "Property",
operator: "==",
value: "New Value"
}]);

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Apr 2013, 08:27 AM
Hello Guillermo,

Since we are not aware of this case and it is not getting clear can you demonstrate this with a JsBin example?

http://jsbin.com


Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Guillermo
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or