AdvancedDataGrid, Grouping/Sorting problem

Posted on 2009-02-17
Last Modified: 2013-11-11
I have a Flex 3 AdvancedDataGrid component where I using the GroupingCollection and that is putting it into the tree struction by group just like I would like.  But ordering them incorrectly.
The query pulls the data and orders it correctly, but it seems to randomly order it into my grid.
Any help would be greatly appreciated!
<mx:AdvancedDataGrid creationComplete="this.TrainingDM.runTrainingWizard(LoginGrid.selectedItem.UserID);"  id="RecommendedGrid2"  verticalScrollBarStyleName="ScrollBarPaper" wordWrap="true"   width="100%" height="100%" headerColors="[#ffffff, #808080]" textAlign="left" fontSize="12"  allowDragSelection="false" dragMoveEnabled="false" dragEnabled="false" dropEnabled="false" backgroundSize="100%" alpha="1.0"   backgroundImage="../Assets/napkin.jpg" backgroundAlpha=".7" cornerRadius="0" dropShadowEnabled="true" shadowDirection="right" shadowDistance="5" horizontalGridLines="true" verticalGridLines="true" verticalGridLineColor="#FF0000" horizontalGridLineColor="#D9D9FF" themeColor="#c4c400" useHandCursor="true"  buttonMode="true"  variableRowHeight="true" useRollOver="true" mouseChildren="true" selectable="true" mouseEnabled="true" headerHeight="28" fontWeight="bold" styleName="mydataGridHeaderStyle"  sortExpertMode="true" sortableColumns="true" >


		 <mx:GroupingCollection id="gc" source="{TrainingDM.runTrainingWizard.lastResult}">


				<mx:GroupingField name="ParentName"  />






			<mx:AdvancedDataGridColumn    sortable="true"  headerText="CLASS NAME (RECOMMENDED):" dataField="TrainingName"   >






Open in new window

Question by:jeresimpson
    1 Comment

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now