PDA

View Full Version : Creating a folder tree without leaves



jokeaccount
13 May 2014, 11:17 PM
Hi,
I'm trying to create a folder tree with 0 or invisible children. The goal is to have a tree panel that displays the folders but NOT their contents (if they are not folders). Thus in my ajax request I only ask for folder locations from our database. However when I try to format it, it bugs out. Only when every "final" folder has a leaf node inside does it format normally. I thought about making dummy leaf nodes in every folder but they still have to be invisible and I have yet to find a way to do that through Ext JS. I saw somewhere that node visibility was a feature in v.3 but was removed in v.4

Any ideas? Preferably WITHOUT tinkering with HTML. Thanks

jokeaccount
14 May 2014, 12:59 AM
I found a way to circumvent this by creating dummy leaf nodes and the removing them immediately after. Is this a correct way to approach this? Or will I have problems later?