Footree.dataProvider would be a good place.  I’m not sure if it will fire events as you expand nodes, but it’s my best guess.  Adding onto myDP would let you know when the actual source data is loaded from the server for example.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Douglas Knudsen
Sent: Thursday, August 17, 2006 6:38 PM
To: [email protected]
Subject: Re: [flexcoders] Event to detect data was loaded in a tree

 

so if I have <mx:Tree id="footree" dataprovider="{ myDP }" .....

Where do I add the event listener for this CollectionEvent.CHANGE?  to the tree itself?  Or to footree.dataProvider?  Or to myDP some how?

DK

On 8/17/06, Matt Chotin <[EMAIL PROTECTED]com> wrote:

There should be an appropriate CollectionEvent.CHANGE event coming from the dataProvider when data becomes available.

 

Matt

 


From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Michael Schmalle
Sent: Thursday, August 17, 2006 4:19 PM
To: [EMAIL PROTECTED]ups.com
Subject: Re: [flexcoders] Event to detect data was loaded in a tree

 

Hi,

I have run into this issue before and I swear I couldn't find an answer for it. There are many events you can listen for for a Tree changing it's state and data changing.

But... As far as granular control dealing with when particular nodes are loaded AND rendered is a completely different issue.

I am writing a CheckBoxTree component right now and have got into the dataDescriptor and dataProvider algorithms heavily. This is tempting me to create another type of tree that would give you control with such features.

The tree is a very powerful component, it's just that there are so many directions you can take with it that it's no wonder Adobe hasn't had time to get to stuff like this.

Adobe, Is there a way to do this, if I am wrong it would be a welcome correction.

Peace, Mike

On 8/17/06, Clarke Bishop <clarke.a.bishop@gmail.com> wrote:

I have a tree control that's bound to a dataprovider. When the data loads, I want to open the tree to the first node. So, I need to detect when the data actually loads, and then open up the appropriated tree elements.

 

I've looked all through the docs, but I can't find a "data loaded" event. Please point me in the right direction!

 

Thanks,

 

   Clarke




--
What goes up, does come down.




--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?

__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to