4 Replies Latest reply on Nov 30, 2009 1:45 AM by nikos101

    bad performance issues with an advanceddatagrid

    nikos101 Level 2

      I'm having bad performance issues with an advanceddatagrid with the following set up. For sake of berievity I've only included 1 of the 9 columns with

      the custom <mx:itemRenderer>

       

      Can you see any way to speed up this grid?

       

      <mx:AdvancedDataGrid id="deals" displayItemsExpanded="false" dataProvider="{vo.usersResult}" width="100%" height="100%" sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">



              <mx:columns>
                  <mx:AdvancedDataGridColumn dataField="name" headerText="User name" width="120" textAlign="center" editable="false"/>
                 
        

                          <mx:AdvancedDataGridColumn headerText="Add Sophisticated" width="70" editorDataField="sophisticatedView" rendererIsEditor="true" backgroundColor="0xddf5ff">
                      <mx:itemRenderer>
                          <mx:Component>
                              <mx:HBox horizontalAlign="center">
          <mx:Script>
                                      <![CDATA[
                                          override public function set data(value:Object):void
                                          {
                                              super.data=value;
                                              if(value != null){
                                              cb1.selected=this.data.sophisticatedView;
                                              }
                                          }
                                      ]]>
                                  </mx:Script>

                                  <mx:CheckBox id="cb1">

                                      <mx:change>
                                          <![CDATA[
                                          this.data.isModifiedClientSide = 1;
                                          this.data.sophisticatedView = cb1.selected; //used to check through data and update server
                                          ]]>
                                      </mx:change>
                                  </mx:CheckBox>
                              </mx:HBox>
                          </mx:Component>
                      </mx:itemRenderer>

                  </mx:AdvancedDataGridColumn>

          
              </mx:columns>

          </mx:AdvancedDataGrid>