2 Replies Latest reply on Mar 1, 2012 8:18 PM by Sathyamoorthi

    Need an expert advice on mx.Datagrid.

    Sathyamoorthi Level 2

      Hi,

       

           I have some doubts regarding datagrid. My application is in flex 3.5.

       

      1. Once i was not aware about itemEditor usage in datagrid. At that time i added itemrenderer and i set rendererIsEditor = 'true' to get itemEditor behaviour. Is that good to stay with rendererIsEditor or should i change itemRenderer to itemEditor to improve performance.

       

      2.I assigned very big XML to my datagrid. XML looks like this.

       

      <Root>

           <Row>

                <item1>value</item1>

                <item2>value</item2>

                <item3>value</item3>

                <item4>value</item4>

                ...

                ...

                ...

                <item250>value</item250>

           </Row>    

           <Row>

                <item1>value</item1>

                <item2>value</item2>

                <item3>value</item3>

                <item4>value</item4>

                ...

                ...

                ...

                <item250>value</item250>

           </Row>

           ...

           ...

      </Root>

       

      my xml contains 250 column values. but i allow maximum 10 columns to display at a time. user can customize datagrid column.

       

      my question is, if i assigned this big xml, will it degrade datagrid performance. shall i assign only 10 columns to dataprovider instead 250.

       

      if i assign only 10 values to dataprovider then i have to remove and add column values to dataprovider based on user customization.

       

      any valuable ideas?