1 Reply Latest reply on Dec 20, 2010 11:42 AM by jfb00

    adv datagrid with grouping

    JockMahon Level 1

      i have

       

                  <mx:AdvancedDataGrid id="ordersAdvGrid"
                                       width="100%" height="100%"
                                       resize="gridCollection.refresh();"
                                       initialize="gridCollection.refresh();"
                                       change="onOrderGridChange(event)"
                                       rollOver="FlexGlobals.topLevelApplication.showTip('Select an order or order status to view  the order pads.')"
                                       rollOut="FlexGlobals.topLevelApplication.destroyTip()">       
                      <mx:dataProvider>
                          <mx:GroupingCollection2 id="gridCollection" source="{model.orderHistory}">
                              <mx:grouping>
                                  <mx:Grouping label="orderTemplateName">
                                      <mx:GroupingField name="orderStatusName"/>
                                  </mx:Grouping>
                              </mx:grouping>
                          </mx:GroupingCollection2>
                      </mx:dataProvider>       
                     
                      <mx:columns>
                          <mx:AdvancedDataGridColumn dataField="orderTemplateName" headerText="Orders" showDataTips="true"/>
                      </mx:columns>
                  </mx:AdvancedDataGrid>

       

      Is there any way to expand one or more of the grouping , so after the refresh all the groups are collapsed, how can i expand them programmatically

       

      thanks