Binding Issues with Angular TreeView Directive

2 posts, 0 answers
  1. Jason
    Jason avatar
    3 posts
    Member since:
    Oct 2013

    Posted 29 Jan 2015 Link to this post

    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:

    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.
  2. Alex Gyoshev
    Alex Gyoshev avatar
    2497 posts

    Posted 02 Feb 2015 Link to this post

    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.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top