Hi Everyone, 

I have a AdvancedDataGrid with the following dataprovider:

[Bindable]
private var dpHierarchy:ArrayCollection = new ArrayCollection([
          {Region:"Southwest", children: [
             {Region:"Arizona", children: [ 
                {Territory_Rep:"Barbara Jennings", Actual:38865, 
Estimate:40000}, 
                {Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}]},  
             {Region:"Central California", children: [ 
                {Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}]}
        ]}

I want to update the "Arizona" object in the ArrayCollection to include 3 
children instead of 2.  So "Arizona" in this case is my unique identifier and I 
don't know where in the hierarchy it resides.

How do I traverse through the ArrayCollection searching on Arizona so I can 
update the object?  I have looked everywhere and can't find any information.  I 
think I need to use IHierarchicalCollectionViewCursor but I can't seem to 
figure out how to get to anything other than the root node.  Thoughts?

Thanks!
Sydney



      


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to