cancel
Showing results for 
Search instead for 
Did you mean: 

About the Tree UIElement

Former Member
0 Kudos

Dear Developers,

I have discovered that the Tree UIElement visual behavior is strange. Is there a way to change this behavior in my coding (?) :

Assuming you have such a tree (fully expanded by the user):

A

--B

--C

---D

if you unexpand A and expand again A, then you get :(STRANGE_OUTPUT)

A

--B

--C

instead of (NORMAL_OUTPUT)

A

--B

--C

---D

In most widget tookits (for the web or for normal GUIs like), the NORMAL_OUTPUT is expected.

Any idea?

Regards,

Olivier MATT

Accepted Solutions (1)

Accepted Solutions (1)

former_member215843
Active Participant
0 Kudos

Hi Olivier,

Have you bound the "expanded"-property of the nodes in the first level?

You should create a context attribute in the context nodes, which can hold the expanded state. Then you can define the initial state and you can keep the expanded state there, even if the parent node is collapsed.

Ciao, Regina

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Oliver,

According to <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/c0/088b41b4b3b25fe10000000a1550b0/frameset.htm">this</a> default value for "expanded" property is "false", so, if the property is not bound to context attribute (as Regina suggested) it is going to be collapsed and state is not stored between user iteractions.

Best regards, Maksim Rashchynski.