This content has been marked as final. Show 4 replies
Nodes of the tree are represented by the TreeDataProvider control. For each node in the tree, the TreeDataProvider control can define the following properties:
data - The data to associate with a node, if any.
label - The text to be displayed in the Tree for a node.
isBranch - If true, the node is a branch: if false, it is not a branch. If not specified, the Tree control determines if the node is a branch based on whether it contains any child nodes.
Can someone tell me how to I can display an empty folder in a Tree component?
I have a php file that makes the xml to display the folders and files on my server. If the directory on the server has no files in it, it makes it a node with no child nodes, so it is displayed in the Tree as a file, and not a folder. Any suggestions that can help me with my problem would be appreciated.
As shown above... you need to add the isBranch=true in the node. That makes the empty node show as a "branch" instead of a "leaf"... Is this what you are asking?
Yeah it totally works. I just didnt understand what to do with your first reply. thanks a lot, thats what i needed.