You need a custom datadescriptor if you need to have the tree show a
different structure than the underlying xml, but it has nothing to do
with expanding nodes.

 

Are you calling the expandItem using callLater()?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of hmmmbeer3
Sent: Monday, January 21, 2008 5:57 PM
To: [email protected]
Subject: [flexcoders] Re: Tree and ITreeDataDescriptor

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you making this harder than it is? Just assign the XML to the
> Tree.dataProvider. Find the node you want using an e4x expression, 
and
> pass that reference to expandItem(). callLater may be needed depending
> on how you assign the dataProvider.
> 
> 
> 
> Here is an example, there are more on that same site as well.
> 
> http://www.cflex.net/showFileDetails.cfm?ObjectID=554
<http://www.cflex.net/showFileDetails.cfm?ObjectID=554> 
> 
> 
> 
> Tracy
> 

Thanks Tracy,

I have tried this with no luck (although I did not know to do the 
expandParents manually) but sadly still no luck. The data is rendered 
in the Tree perfectly, but I can not get it to visually or 
programmatically select a node; stepping through the debugger seems to 
do everything ok (including several expandItem calls), but the tree 
does not end up visually expanded nor does the selectedIndex value 
change when selectedItem is changed.

Is there anything simple I am missing?
I am also more than happy to provide a custom ITreeDataDescriptor, but 
I need to know how to ask for the children of a tree with no root.

Cheers

Radek

 

Reply via email to