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
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
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
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:
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
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
6 matches
Mail list logo