1 Reply Latest reply on Jan 9, 2011 2:47 PM by Don Kerr

    Advanceddatagrid - How close am I

    wmkolcz Level 1

      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.