cancel
Showing results for 
Search instead for 
Did you mean: 

TreeByNestingTableColumn - how to set lead selection?

Former Member
0 Kudos

Hallo Guys!

I am using TreeByNestingTableColumn in my project. I am searching for a way to select a certain context element inside of the tree shown in such a table. I actually know that setLeadSelection doesn’t work properly in such a case.

I’ve already read this very helpful blog /people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii searching for a solution, but its seemed not to be there.

Valery had shown how to read the selected context element recursively, but there is nothing about to how to set the needed lead selection for a certain one.

In my scenario, I am loading the whole table (10-15 elements) with only two levels of hierarchy. After the user clicks on a button I have to reload this table but keep the selection of the previously selected element.

The try using getTreeSelection didn’t succeed either.

Any ideas?

Many Thanks

Dimitri

Edited by: Dmytro Lubenskyy on Apr 1, 2008 3:44 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the following methods to set the selection.


IWDNodeElement nodeElement = wdContext.nodeOrders().getElementAt(2);
	  wdContext.nodeOrders().setTreeSelection(nodeElement);

Regards

Ayyapparaj

Answers (0)