Spent the last hour on the Adobe docs but can't get this to work (at all). I confirmed the data is there and correct but not working for my first ever attempt at an AdvancedDataGrid. Thanks!
<mx:AdvancedDataGrid id="userDG" width="100%" height="100%" doubleClickEnabled="true" doubleClick="viewUser()">
<mx:dataProvider>
<mx:GroupingCollection2 id="gc" source="{allUsers}">
<mx:Grouping>
<mx:GroupingField name="orgName"/>
</mx:Grouping>
</mx:GroupingCollection2>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn headerText="Organization" dataField="orgName" />
<mx:AdvancedDataGridColumn headerText="First Name" dataField="firstName" />
<mx:AdvancedDataGridColumn headerText="Last Name" dataField="lastName" />
<mx:AdvancedDataGridColumn headerText="Username" dataField="username" />
<mx:AdvancedDataGridColumn headerText="Role" dataField="role" width="100" />
<mx:AdvancedDataGridColumn headerText="Date Added" width="80" labelFunction="df.dateAddedDGUS" />
</mx:columns>
</mx:AdvancedDataGrid>-
Its supposed to group on the 'orgName' field.
Is the data just not displaying in the grid at all?
If so, try adding initialize="gc.refresh();" to the adg.
Don