cancel
Showing results for 
Search instead for 
Did you mean: 

Selection in Tree View - strange behaviour - opening node automatically

kai_mattern2
Explorer
0 Kudos

Hi Together,

i have a tree view which is working fine and is already life. A user has now found a strange behaviour where I'm looking for a solution.

If you open a node and select a subnode it gets selected (visualized by a dashed line around it and a color change - in my case from light to dark blue but this depends on the portal schema).

If you now close the node the subnode is still selected. If you open another node of the tree the first node with the selected sub node under it opens up again. I tried to clear the lead selection (set to 0) but with no result.

anybody knows how to remove this behaviour?

In a forum search i found to change the selection attribute from my tree to 1..1 but this does not work for me.

best regards,

Kai Mattern

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you tried the method setTreeSelection?

Ex:

wdContext.nodeOrders().setTreeSelection(wdContext.nodeOrders().getElementAt(0));

Regards

Ayyapparaj

kai_mattern2
Explorer
0 Kudos

Thank you Ayyapparaj

that did it.

best regards and thanks again,

Kai Mattern

Answers (0)