1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    6
    Vote Rating
    0
    nickbrook72 is on a distinguished road

      0  

    Default Unanswered: hiding open arrow for childless folder in TreePanel

    Unanswered: hiding open arrow for childless folder in TreePanel


    Hi. I'm using a TreePanel to create a tree of effectively folders, as I want each node in my hierarchy to be able to own other tree nodes. While this works fine if each node sets "leaf:false" it does mean that empty folders still show the 'open' arrow. Is there a way to hide this arrow for an empty folder? I still want to be able to drag folders into this folder, but it looks a bit silly if the user tries to open an empty folder.

    Thanks,

    Nick Brook

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Answers
    1
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Configure your empty folder with expanded:true (and loaded:true if it's an AsyncTreeNode).

  3. #3
    Ext User
    Join Date
    Aug 2010
    Posts
    6
    Vote Rating
    0
    nickbrook72 is on a distinguished road

      0  

    Default


    Nope. If I add expanded:true or loaded:true (or both) it forces the node to be displayed as a leaf, even though i've specified leaf:false
    Basically I want everything to be displayed as a folder, but for empty folders to have no open/close icon

  4. #4
    Sencha User
    Join Date
    Jun 2014
    Posts
    1
    Vote Rating
    0
    kleuspaul07 is on a distinguished road

      0  

    Default Same Problem

    Same Problem


    Is this problem already fixed?

Similar Threads

  1. Empty folder in TreePanel?
    By bbxx in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 9 Oct 2009, 9:07 AM
  2. [FIXED] [1.2] Tree - Empty folder can show expand arrow
    By kcaseye in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 17 Dec 2008, 10:07 PM
  3. Open folder dialog. Possible?
    By jade in forum Community Discussion
    Replies: 2
    Last Post: 12 Jun 2007, 12:47 AM
  4. Treepanel and folder icon
    By alex1er in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 2 Mar 2007, 8:09 AM

Thread Participants: 2