Skip to main content
Newcomer
Aug 8, 2024 4:15 PM UTC
Solved

Close custum tree hierarchy in filter

I have a custum tree hierarchy with multiselection, 

JooRodrigues_0-1723133517962.png

It looks like this 

JooRodrigues_1-1723133580138.png

Is there a way to format this component to open like this:

JooRodrigues_2-1723133652511.png

 

sameburnAnswer
Employee - Advisor
Aug 8, 2024 8:28 PM UTC

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

4 replies

sameburnEmployee - AdvisorAnswer
Employee - Advisor
Aug 8, 2024 8:28 PM UTC

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

Newcomer
Aug 9, 2024 10:58 AM UTC

Thank you sameburn , that helped.

Member
Feb 26, 2025 1:44 PM UTC

Hi! how you got multiselect function? thank you!

Employee - Advisor
Feb 26, 2025 7:21 PM UTC

Hi Alvaro

To setup a Multi-Select Tree View requires some development to achieve. Please see blog below which details summary steps to achieve 

How to build a Multi-Select TreeView | OneStream Community

Hope this helps

Sam