Re: [flexcoders] Event to detect data was loaded in a tree

2006-09-24 Thread EECOLOR
Hello, what worked for me was this: _tree.addEventListener(FlexEvent.UPDATE_COMPLETE, _treeDataChanged);_tree.dataProvider = _data_xml; private function _treeDataChanged(e:FlexEvent):void{ //remove the listener so the user canopen and close items

RE: [flexcoders] Event to detect data was loaded in a tree

2006-08-21 Thread Matt Chotin
Footree.dataProvider would be a good place. Im not sure if it will fire events as you expand nodes, but its my best guess. Adding onto myDP would let you know when the actual source data is loaded from the server for example. Matt From: flexcoders@yahoogroups.com

Re: [flexcoders] Event to detect data was loaded in a tree

2006-08-17 Thread Michael Schmalle
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

RE: [flexcoders] Event to detect data was loaded in a tree

2006-08-17 Thread Matt Chotin
There should be an appropriate CollectionEvent.CHANGE event coming from the dataProvider when data becomes available. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, August 17, 2006 4:19 PM To:

Re: [flexcoders] Event to detect data was loaded in a tree

2006-08-17 Thread Douglas Knudsen
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? DKOn 8/17/06, Matt Chotin [EMAIL PROTECTED] wrote: There should be an appropriate

Re: [flexcoders] Event to detect data was loaded in a tree

2006-08-17 Thread Michael Schmalle
footree.dataProvider? Yeah,This still doesn't solve some precise loading scenarios though. This just means it changed somewhere, you can get locations of indexes BUT finding out when that particular node is rendered is what needs to be implemented. Peace, MikeOn 8/17/06, Douglas Knudsen [EMAIL