3.0 beta 2

Programmatically showing a selected tree node

Please advise on porgramatically showing a selected tree node.

tree1.setItemSelected(function(i){return true;});

This should work if we replace the function body will something that dynamcially sets the selected node. However, all tree nodes are shown as selected.

Comment?
icodeon
February 24,
I think the method you are looking for is setSelectedItems([]). With this method it is expecting an array of integers representing the items to mark as selected. I have not tried to select one via Javascript but that is the 'standard' way to select items in AW 2.0.
Jim Hunter (www.FriendsOfAW.com)
February 27,
Thanks - that works.

However, we are find the tree control "buggy" with the AW 2.0 release. Selecting items in a deeply nested tree has unexpected results in the rest of the tree - such as nodes unexpectedly shifting "down" leaving a "gap" in the tree.

Please advise any expected bug fix releases for the Tree control - thank you.
icodeon
February 28,
The tree model will only currently support a maximum of 6 iterations in depth - and the one iteration is the parent node.

This leaves you with a maximum of 5 level in depth - after that the redendering of things correctly will not happen.

Yasdnil
February 28,
You can edit the CSS file and add more levels if you need them, it's quite simple. There is another thread about this elsewhere. This may be your issue.
Jim Hunter (www.FriendsOfAW.com)
March 1,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.