1 Reply Latest reply on Apr 30, 2010 2:44 AM by Sameer Bhatt

    AdvancedDataGrid Renderer Challenge

    emansouri

      Hello,

       

      I have an AdvancedDataGridRendererProvider with its columnIndex set to 0 and columnSpan set to 2.

       

      In this configuration, the node open/close option disappears and I am interested in finding the easiest way to restore it while maintaining the renderer in the described configuration.

       

      Thank you in advance.

        • 1. Re: AdvancedDataGrid Renderer Challenge
          Sameer Bhatt Adobe Employee

          Do you want the Group renderer with open/close arrow to span two columns? See this sample -

           

              <mx:AdvancedDataGrid  initialize="gc.refresh()">
                  <mx:dataProvider>
                      <mx:GroupingCollection2 id="gc">
                          <mx:source>
                              <mx:ArrayCollection>
                                  <fx:Object name="A" sno="1" />
                                  <fx:Object name="B" sno="2" />
                                  <fx:Object name="C" sno="3" />
                              </mx:ArrayCollection>
                          </mx:source>
                          <mx:grouping>
                              <mx:Grouping>
                                  <mx:GroupingField name="name" />
                              </mx:Grouping>
                          </mx:grouping>
                      </mx:GroupingCollection2>
                  </mx:dataProvider>
                  <mx:columns>
                      <mx:AdvancedDataGridColumn dataField="name"/>
                      <mx:AdvancedDataGridColumn dataField="sno"/>
                  </mx:columns>
                  <mx:rendererProviders>
                      <mx:AdvancedDataGridRendererProvider columnIndex="0" columnSpan="2"
                                                           renderer="mx.controls.advancedDataGridClasses.AdvancedDataGridGroupItemRenderer" />
                  </mx:rendererProviders>
              </mx:AdvancedDataGrid>