cancel
Showing results for 
Search instead for 
Did you mean: 

Tree initial state - open node (WD for Java)

Former Member
0 Kudos

Hello,

I have a WebDynpro tree, which I am populating with all the data upfront before displaying it. However, for some reason, when the tree comes up, it is always open, selecting the first leaf (node without children) of the tree.

When navigating away from this view and back, the all nodes are closed.

Anyone know why this is the case, or what settings I must change? I am setting the expanded property correctly on all nodes.

Thanks,

Martin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Martin,

Tree is always follows lead selection of corresponding node. So first part of your problem can be resolved via setting initializeLeadSelection=false for nodes involved.

Next thing that affects behavior is "expanded" property of Tree UI controls. If bound to boolean attrubte, expand/collapse state of Tree can be controlled programatically. Try this if removing lead selection does not solve your second problem.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Good call Valery! It worked. Thanks.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Are you setting the expanded property to "false" dynamically from your wdDoModifyView()?

Or have you done this in designtime?

Regards,

Satyajit.