Issue faced in appending child nodes on expand event to parent node in TreeView

3 posts, 1 answers
  1. Niranjan
    Niranjan avatar
    11 posts
    Member since:
    Sep 2017

    Posted 01 Dec 2017 Link to this post

    TreeView datasource reloads when i try to expand a node, the parent data is appended to the expanded node. Strangely however if i collapse the expanded node and expand it again the child nodes are appended. Help please
  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    2058 posts

    Posted 04 Dec 2017 Link to this post

    Hello Niranjan,

    See the following dojo example, which demonstrates how a new node can be appended to a parent node using the TreeView's expand event. A jQuery object of the expanded node is obtained through the findByUid method and a new is appended to the expanded one. 
    If the provided example does not help with fixing the issue you are experiencing, could you modify it accordingly, in order for the problematic behavior to be reproduced and link it back for further review?

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Niranjan
    Niranjan avatar
    11 posts
    Member since:
    Sep 2017

    Posted 17 Dec 2017 in reply to Ivan Danchev Link to this post

    This works well!

    Thanks
Back to Top