Thanks a lot Tracy, That worked great..
Regards Kumar --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > No, since you have just assigned the dataProvider, you need to give the > Tree a chance to render before calling visually oriented methods. > > > > Use callLater to call the expand node code. > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of sk_acura > Sent: Thursday, October 18, 2007 5:58 PM > To: [email protected] > Subject: [flexcoders] Unable to Expand a Tree programatically.. > > > > Hi All, > > I have a Tree Control and is backed by a ArrayCollection of Node > (custom) Class. > > And when i set the dataProvider and call the updateNow it doesn't > expand..(i have to manuallt expand the nodes..) > > Here is the Code i am using..(I am initilaizing this on my init() > method..(creationComplete..) > [CODE] > modelTree.dataProvider = arrayCollection; > modelTree.validateNow(); > modelTree.expandItem(this.contextNode,true,true,false,null); > modelTree.expandChildrenOf(this.contextNode,true); > modelTree.validateNow(); > [/CODE] > > Is this because i am trying to expand the Root Node ?? > > Thanks > Kumar.. >

