I have a TreePanel. When I filter the store of the TreePanel so that a node appears to be empty, the symbol to open the node is still there. I think it would be better if the symbol to open the folder disappeared if its content is not visible. Is there a solution for this?
Asked
Active
Viewed 33 times
2 Answers
0
You can set "expandable: false"
on the filtered and empty nodes (children:[]
) and do the same thing when inserting new code.

Brian Mogambi
- 162
- 1
- 2
- 13
0
The icon is rendered if the node's isExpandable
function returns true. You can override that function to your needs.
Or maybe you want to override the hasChildNodes
function to include a check whether the child nodes are filtered out or not.

Alexander
- 19,906
- 19
- 75
- 162