cancel
Showing results for 
Search instead for 
Did you mean: 

handling tree focus in webdynpro

Former Member
0 Kudos

Hi All

I want focus on a particular tree node only on its selection and no focus on any tree node initially.

but it always displays the focus on first tree node by default.

How to handle this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Set the initializeLeadSelection property of the node(which is bound to your tree) to false.

Regards,

Satyajit.

Answers (1)

Answers (1)

former_member85655
Active Participant
0 Kudos

Hi Swati,

You can always navigate to the relevant element on the tree and have it selected by changing the lead selection in the context.

wdContext.nodeTestNode().currentTestNodeElement().node().setLeadSelection(3);

Now it should point to the relevant selected element on the tree.

Regards,

Arun