Hi Michael -
Whenever an item is updated in the model, the Tree should receive an UPDATE type of collectionChange event, not a RESET. Have/Can you narrow down which call is causing the RESET to be emitted? My attempts to add an attribute to a data item in the model via the descriptor or through the model itself always produce an UPDATE type of collectionChange event. Incidentally, we use the setToggled() method in DefaultDataDescriptor for menu-based controls. I'm assuming you're adding a similarly named attribute to your Tree's model to indicate to the CheckBox whether it should be selected or not? -deepa ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Saturday, December 09, 2006 8:35 AM To: [email protected] Subject: [flexcomponents] XML :: Tree :: XMLChangeWatcher Hi, I have a little problem here. I have a check box tree that works fine most of the time. I have run into a bug that I didn't have before. I have debugged it using the debugger and found the 'problem'. When you assign an XML dataProvider, I use a dataDescriptor that sets an @toggled attribute on the model. The problem is, the XMLChangeNotifier sends an attributeChanged event and eventually down the line, the Tree gets a CollectionChange event that is a 'reset' right at the end of a toggle on the check box. The problem is, if the Tree is scrolled, it resets the scroll position to 0 every time becasue of the reset event. I have tried doing a hac blobk during toggle select but, it ends up messing the view of the Tree. How can I fix this? Peace, Mike -- Teoti Graphix http://www.teotigraphix.com <http://www.teotigraphix.com> Blog - Flex2Components http://www.flex2components.com <http://www.flex2components.com> You can find more by solving the problem then by 'asking the question'.
