Results 1 to 4 of 4

Thread: [CLOSED][3.0rc1] Async Tree node doesn't expand

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default [CLOSED] [3.0rc1] Async Tree node doesn't expand

    Hi,
    I manually add a AsyncTree node to a tree view and call child.expand(true) and the tree view does not expand to the child. opening the parent also does not show the child.

    If I open the parent before adding the child, the child appears.

    The below code does not work as expected:

    Code:
        parent.appendChild(child);
    
        child.expand(true);
    Only when the parent is opened previously is the child visible.

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default

    In addition to this, appending children to nodes in the "append" event callback does not cause the appended nodes to appear.

    It should be possible to append to nodes whether or not those nodes are rendered currently. The object model and the rendering should be separate - which I think it is - but perhaps its not working correctly.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    I think you don't fully understand how AsyncTreeNode actually works.

    An AsyncTreeNode doesn't preload it's children. So not only the rendered presentation of the child nodes, but also the nodes themselves don't exist until the parent node is expanded.

    Your problem is that loading an AsyncTreeNode clears all current children (including the ones you added before the expand). If you don't want that you need to set clearOnLoad:false in the TreeLoader config.

  4. #4
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default

    Ahhhh, ok. thanks for the tip. Yes, I don't understand it fully but I appreciate the pointers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •