Thanks Tracy!
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <tr...@...> wrote:
>
> When you assign a dataProvider programmatically, you need to wait for the
> control to update before attempting to interact with the visual elements,
> like node expanding.
>
>
>
> Use callLater to delay the expand code.
>
>
>
> I have an example on www.cflex.net <http://www.cflex.net/> if you need it.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> _____
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Mic
> Sent: Wednesday, July 08, 2009 12:53 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] tree not expanding with expandItem()
>
>
>
>
>
>
>
>
> collSearchHierarchy = new XMLListCollection(procXML);
> treeSrchHrchy.expandItem(collSearchHierarchy.getItemAt(0), true);
>
> Tree is staying collapsed and not expanding. Interesting that stepping
> through above, treeSrchHrchy.openItems is null before the .expandItem() and
> does show the top node in the openItems array after setting expandItem().
> Which would suggest that expandItem is working but the display is not
> displaying it? Adding a
>
> treeSrchHrchy.invalidateDisplayList(); does not help. TIA,
>
> Mic.
>