Results 1 to 5 of 5

Thread: TreePanel Expand/Collapse Causes ChildNode to Disappear

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    13

    Default TreePanel Expand/Collapse Causes ChildNode to Disappear

    Please see attached screenshots in order given. Notice on the last shot how the ViewGroup5 --> viewOnly childNode disappears after collapse expand of the previous ViewGroup4 node. I'm finding the expand/collapse treatment of TreePanel to be very iffy.

    This is on 6.0.2

    Ron Grimes
    treepanel_bug.zip
    Last edited by Senchurian; 11 Jul 2017 at 1:29 PM. Reason: Version addition

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    It's not really possible to say without a test case. Are the ids for nodes unique?
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    13

    Default

    Quote Originally Posted by evant View Post
    It's not really possible to say without a test case. Are the ids for nodes unique?
    I'll check. I had been concentrating on proper settings of leaf, expanded, expandable. etc. But, that's a good point.

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    13

    Default

    Quote Originally Posted by evant View Post
    It's not really possible to say without a test case. Are the ids for nodes unique?
    Thanks for the pointer as that did turn out to be the issue. This is a tree panel of groups/roles/permissions, and multiple groups could contain the same roles. So, by putting in the TreeModel "idProperty: 'uuid' ", it essentially gave multiple children the same node id.

    Good call.

    Thanks,

    Ron

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2014
    Posts
    13

    Default

    Resolved per previous comment.

Similar Threads

  1. running example disappear if collapse then expand preview
    By SebTardif in forum Sencha Fiddle
    Replies: 1
    Last Post: 30 Nov 2016, 8:17 PM
  2. Replies: 1
    Last Post: 15 May 2012, 7:57 AM
  3. TreePanel Expand/Collapse
    By nak1 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 6 May 2010, 2:38 PM

Tags for this Thread

Posting Permissions

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