View Full Version : tree.setIsOpen on all nodes
jakepeg
11-29-2005, 11:39 AM
I want all the nodes in my tree to be open onload - is this possible???
FormerSwinger
11-29-2005, 11:50 AM
write a method for the onload event where you loop through all nodes and set open for all of them. This may not be efficient or smart but it should work.
the method would be something like:
var node:XMLNode=tree.dataProvider.firstChild;
while(node!=undefined){
tree.setIsOpen(node,true);
//something that changes node value to a child node sibling node or parent nodes sibling node so that all nodes get looped.
}
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.