I've been using the pushUpdate method on dataSource for the past few weeks in version 2014.3.1425 and it's worked great, but yesterday I updated to 2015.1.318 and the pushUpdate method is no longer available. Is this intentional?
My line is $scope.PartsMatrixTreeList.dataSource._pushUpdate(data);
But looking at the watch in Chrome, there are no push events available:
My line is $scope.PartsMatrixTreeList.dataSource._pushUpdate(data);
But looking at the watch in Chrome, there are no push events available:
5 Answers, 1 is accepted
0
Hello John,
The pushUpdate() method is still available, but you have been using the private method, that is not part of the public API. Here is the public API reference that explains this method as well:
http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-pushUpdate
Please keep in mind that all properties and methods that start with _ are not intended for public use.
Regards,Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 2
answered on 23 Mar 2015, 02:32 PM
Ok thanks. I've changed my code to $scope.PartsMatrixTreeList.dataSource.pushUpdate(data);
In 2014.3.1425 I can update my TreeList without problem using the pushUpdate method, but when I switch to 2015.1.318 it adds the updated data as a new node and children to the bottom of my treelist.
In 2014.3.1425 I can update my TreeList without problem using the pushUpdate method, but when I switch to 2015.1.318 it adds the updated data as a new node and children to the bottom of my treelist.
0
Hello John,
I am not able to reproduce the exact issue, is it possible to send us a runnable sample where we can reproduce the issue and advise you further?
Thanks for the cooperation.
Regards,Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 2
answered on 01 Apr 2015, 09:15 AM
Hi Kiril,
It's quite hard to give a demo of our work. What we have is a Treelist that is being generated dynamically by AngularJS and we are doing incell editing. When we click on a cell it will load a bootstrap modal. We then apply some changes that can affect other nodes in the TreeList. What we then do is send all the expanded nodes back to the server and get the latest data for the nodes. When that is returned via the AJAX call we use pushUpdate to sync the data with the TreeList.
It all works fine in 2014 Q3 but if we just change to using 2015 Q1 we end up doubling the nodes in the TreeList.
I've attached a js file with the structure of the TreeList and the apply method we use to pushUpdate and sync the TreeList.
It's quite hard to give a demo of our work. What we have is a Treelist that is being generated dynamically by AngularJS and we are doing incell editing. When we click on a cell it will load a bootstrap modal. We then apply some changes that can affect other nodes in the TreeList. What we then do is send all the expanded nodes back to the server and get the latest data for the nodes. When that is returned via the AJAX call we use pushUpdate to sync the data with the TreeList.
It all works fine in 2014 Q3 but if we just change to using 2015 Q1 we end up doubling the nodes in the TreeList.
I've attached a js file with the structure of the TreeList and the apply method we use to pushUpdate and sync the TreeList.
0
Hello John,
Here is a Dojo example with a TreeList and editing, please edit it in order to show the issue that you face and we will be happy to help:
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!