Close custum tree hierarchy in filter

JoãoRodrigues
New Contributor

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

 

1 ACCEPTED SOLUTION

sameburn
Contributor

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

View solution in original post

2 REPLIES 2

sameburn
Contributor

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

Thank you @sameburn , that helped.