Posted on 2011-10-31
Medium Priority
Last Modified: 2012-05-12
hi guys

I am using GroupingCollection.
when the screen loads i want to see all the data in expanded format but expandAll(); is not working

this.dataGrid.setStyle("folderClosedIcon", null);
this.dataGrid.setStyle("folderOpenIcon", null);
this.dataGrid.setStyle("defaultLeafIcon", null);                               
this.dataGrid.expandAll();  -- not displaying the data in expanded format.

any idea?

Question by:royjayd
1 Comment
LVL 29

Accepted Solution

dgofman earned 1400 total points
ID: 37058128
You may need execute expandAll after data loaded add event listener in datagrid

            import mx.events.CollectionEvent;
            protected function initHandler(event:Event):void
                var dg:AdvancedDataGrid = event.target as AdvancedDataGrid;
                function expandAll(event:CollectionEvent):void{
                dg.addEventListener(CollectionEvent.COLLECTION_CHANGE, expandAll);
                if(dg.dataProvider != null)
                //dg.dataProvider = [{col:1},{col:2},{col:3},{col:4}];
   <mx:AdvancedDataGrid preinitialize="initHandler(event)">

Open in new window


Featured Post

Shaping tomorrow’s technology leaders, today

The leading technology companies all recognize the growing need for gender diversity. Through its Women in IT scholarship program, WGU is working to reverse this trend by empowering more women to earn IT degrees and become tomorrow’s tech-industry leaders.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question