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

Binding Issues with Angular TreeView Directive

1 Answer 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 29 Jan 2015, 11:42 AM
In addition to issue just raised by Laszlo, the TreeView directive is behaving unexpectedly when child items are added to the underlying ObservableArray.

See snippet here: http://dojo.telerik.com/UCEBO

If you expand the "Foo" node before adding the child item, things work as expected. But if you add the child item before expanding "Foo", all of the existing child items disappear.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 02 Feb 2015, 09:52 AM

Hello Jason,

The issue occurs because the new data is considered as loaded from the server, because the TreeView is, by default, in load on demand mode. To resolve this, set the loadOnDemand configuration option to false. Here's the updated Dojo snippet.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Jason
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or