Re: [flexcoders] expand entire tree?

2007-04-17 Thread haiqing
AIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, April 16, 2007 1:10:59 PM Subject: Re: [flexcoders] expand entire tree? Hi Joshua, try this: var dp:XML = tree.dataProvider[ 0]; tree.openItems = dp..node; Note that this code works for a dataprovider with a root node and with &qu

Re: [flexcoders] expand entire tree?

2007-04-16 Thread Christophe Herreman
Hi Joshua, try this: var dp:XML = tree.dataProvider[0]; tree.openItems = dp..node; Note that this code works for a dataprovider with a root node and with "node" as the nodenames. regards, Christophe joshua gatcke schreef: > > Does anyone know how to expand a tree on initialize? I have tried t

[flexcoders] expand entire tree?

2007-04-16 Thread joshua gatcke
Does anyone know how to expand a tree on initialize? I have tried the following with no avail: private function setPageListTree():void{ pageListTree.openItems(pageListTree.dataProvider.getItemAt(1)); pageListTree.expandItem(pageListTree.dataProvider.children(), true); pa