cancel
Showing results for 
Search instead for 
Did you mean: 

Tree UI element - expand all

former_member182374
Active Contributor
0 Kudos

Hi All,

I have a non recursive tree with four levels (the first level is the root node).

Each node is bound to a context node.

The default lead selection is "1" for all nodes so the tree look like this.

Root

--Level 1-1

-


Level 2-1

-


Level 3-1

-


Level 3-2

-


Level 3-3

--Level 1-2

--Level 1-3

The selected node is "3-1"

Under level 1-2 and 1-3 there are more elements but I cannot see them because of the lead selection.

How do I expand all the elements as default?

Thanks,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Omri,

So, what is the issue? Just iterate through node elements (recursevely in case of the same names for "expanded" attribute and for parent-child relation or just using 3 different methods otherwise) and set appropriate attribute value of node element which is bound to "expanded" property of UI element.

Best regards, Maksim Rashchynski.

former_member182374
Active Contributor
0 Kudos

Hi Maskim,

Thanks for the quick response.

This is exactly what I did. However, I had a problem with the data binding and therefore it didn't work.

Problem Solved

Thanks again,

Omri

Answers (0)