on 04-01-2008 2:44 PM
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 doesnt work properly in such a case.
Ive 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 didnt succeed either.
Any ideas?
Many Thanks
Dimitri
Edited by: Dmytro Lubenskyy on Apr 1, 2008 3:44 PM
Hi,
You can use the following methods to set the selection.
IWDNodeElement nodeElement = wdContext.nodeOrders().getElementAt(2);
wdContext.nodeOrders().setTreeSelection(nodeElement);
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.