AngularJS TreeView not updated

3 posts, 1 answers
  1. Passport
    Passport avatar
    1 posts
    Member since:
    Sep 2010

    Posted 25 Feb 2015 Link to this post

    We are using KendoUI TreeView with AngularJS.

    DataSource attached to TreeView via k-data-source attribute.
    If DataSource initialized via ajax request - TreeView not updated and still empty.

    Example of such behavior:
  2. Answer
    Petyo avatar
    2437 posts

    Posted 27 Feb 2015 Link to this post

    Hi Artem,

    when the treeview is instantiated with a plain object as a datasource, it treats it as configuration options and instantiates a datasource instance from it. Subsequent updates of the object are not taken into account. To work around that, you may use k-ng-delay - please check an updated version of your example. 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Wray
    Wray avatar
    7 posts
    Member since:
    Aug 2013

    Posted 03 Mar 2015 in reply to Passport Link to this post

    Works for me, if after receiving the delayed datasource, I do following:

             var ds = new
                        data: myHierarchyData

Back to Top