I have found the dynamically building DataGrid columns is very slow as well.

If you do not need sortable, resizable columns, you might try a custom cell 
renderer in a List, instead of a DataGrid.

You might want to test this under the new FlashPlayer 8 beta.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of devis
Sent: Tuesday, August 02, 2005 4:13 AM
To: [email protected]
Subject: [flexcoders] Performace please some suggestion

Hi, if you can see my code, work fine ok, but when flex go to "render" the
performance it's very very slow.


1) Before this function i call a AMF response it's very fast
2) Some other flex component are rendered very fast.

About you, this is a bad approach? can you give some better solution
Thank's
 devis


function Init_Taglie()
                  {
                          dgmisure.removeAllColumns();       
                          myColumn= new DataGridColumn();
                          myColumn.headerText = "Stato";
                          myColumn.width=50;
                          myColumn.columnName="strecz";
                          dgmisure.addColumn(myColumn);
  
                          myColumn =new DataGridColumn();
                          myColumn.headerText = "Descrizione";
                          myColumn.width=150;
                         
myColumn.labelFunction=mx.utils.Delegate.create(this,getDsc_Misura);
                          dgmisure.addColumn(myColumn);
                          
                          
                          myColumn =new DataGridColumn();
                          myColumn.headerText = "Calo";
                          myColumn.width=50;
                         
myColumn.labelFunction=mx.utils.Delegate.create(this,getTipo_Calo);
                          dgmisure.addColumn(myColumn);

                          
                          for(var
row=0;row<mx.core.Application.application.taglie.length;row++)
                          {
                
                                  myColumn= new DataGridColumn();
                                  myColumn.headerText =
mx.core.Application.application.taglie[row];
                                  myColumn.width=50;
                                  myColumn.columnName="ma"+(row+1)+"cz";
                                  dgmisure.addColumn(myColumn);
                          }
                  }   
   





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 







------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h1dmp43/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123009855/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to