Posted on 2011-10-31
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

    You may need execute expandAll after data loaded add event listener in datagrid

                protected function initHandler(event:Event):void
                    var dg:AdvancedDataGrid = 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

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    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…
    Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now