Here's something I do when I get the result from a dataProvider for 
the tree....
"this.treeMailBox.expandItem(this.treeMailBox.selectedItem, true);"

In following is when I use it.

private function getTreeFolders_result(event:ResultEvent):void
{
//Alert.show(ObjectUtil.toString(event.result));
this.treeMailBox.dataProvider = event.result;
this.treeMailBox.validateNow();
this.treeMailBox.selectedIndex=0;
this.treeMailBox.expandItem(this.treeMailBox.selectedItem, true);
}



--- In [email protected], "Michael Labriola" <[EMAIL PROTECTED]> 
wrote:
>
> 
> Hara,
> 
> Take a look at the expandChildrenOf () method of the tree class.
> 
> public function expandChildrenOf(item:Object, open:Boolean):void
> Opens or closes all the tree items below the specified item. 
> 
> Parameters  item:Object — the starting item  
>   
>  open:Boolean — toggles an open or close operation  
> 
> --Mike
> 
> --- In [email protected], "haravallabhan" <haravallabhan@>
> wrote:
> >
> > Hi,
> > 
> > How can I expand a tree dynamically r atleast when the 
application has 
> > loaded.
> > 
> > Thanks
> > Hara
> >
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to