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

DataSource pushUpdate() no longer available

5 Answers 344 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 2
John asked on 19 Mar 2015, 09:24 AM
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:

5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 21 Mar 2015, 07:09 AM

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.
0
Kiril Nikolov
Telerik team
answered on 25 Mar 2015, 08:19 AM

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.
0
Kiril Nikolov
Telerik team
answered on 03 Apr 2015, 06:22 AM

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:

 

http://dojo.telerik.com/ulElI

 

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
Data Source
Asked by
John
Top achievements
Rank 2
Answers by
Kiril Nikolov
Telerik team
John
Top achievements
Rank 2
Share this question
or