Re: [flexcoders] Event to detect data was loaded in a tree
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 _tree.removeEventListener(FlexEvent.UPDATE_COMPLETE, _treeDataChanged); _tree.expandChildrenOf(_tree.firstVisibleItem, true);}; Greetz Erik __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Event to detect data was loaded in a tree
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 [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas Knudsen Sent: Thursday, August 17, 2006 6:38 PM To: flexcoders@yahoogroups.com 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
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, MikeOn 8/17/06, Clarke Bishop [EMAIL PROTECTED] 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. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Event to detect data was loaded in a tree
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: flexcoders@yahoogroups.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. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
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? DKOn 8/17/06, Matt Chotin [EMAIL PROTECTED] wrote: 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: flexcoders@yahoogroups.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 [EMAIL PROTECTED] 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 Knudsenhttp://www.cubicleman.comthis 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 Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Event to detect data was loaded in a tree
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 PROTECTED] wrote: 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 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: flexcoders@yahoogroups.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 [EMAIL PROTECTED] 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.comthis is my signature, like it? -- What goes up, does come down. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___