Does anyone have an example of ExpandItem on an AdvancedDataGrid? I basically have an advanceddatagrid with the dataprovider as a GroupingCollection and the source of the GroupingCollection as an ArrayCollection. I have tried looking through each item in the ArrayCollection as well as the GroupingCollection and calling myADG.expandItem(obj, true); without success. I tried to search through the forums on here as well as the internet for an example without success. Any information on the topic at all would be extremely helpful. Thank you for your time!
Ok I figured it out basically you have to get your data from your AdvancedDataGrid and put it into a HierarchicalCollectionView. something like:
tempHCollView = HierarchicalCollectionView(myADG.dataProvider);
then create a cursor
var cursor:IViewCursor = tempHCollView.createCursor();
then just loop through the tempHCollView using that cursor
var node:Object = cursor.current;
At least thats how I did it.