Forum Discussion

JoãoRodrigues's avatar
JoãoRodrigues
New Contributor
5 months ago

Close custum tree hierarchy in filter

I have a custum tree hierarchy with multiselection,  It looks like this  Is there a way to format this component to open like this:  
  • sameburn's avatar
    5 months ago

    Hi JoãoRodrigues 

    If you have already built a multi select treeview than you are already controlling the output 

    In your logic, when you create the XFTreeItem(s) there is a boolean variable you pass in called isExpanded. This enables you to control which members are expanded and when, based on your selections.  

    Remember if you start with parents not expanded, then you also need to ensure that the parent is expanded, after you select its children.

    So it is just a bit more development from what you've already created in terms of parameter control based on your selections in your tree view logic