Under FlashPlayer 8 it's the same . ;-) I don't need sortable, resize but i'm using a dataGrid because:
1) For a column i have a dataBinding ( java Vector) 2) For row of datagrid i have anohter dataBinding (ActionScript java Class) With the i have no idea if this is possibile. Devis Tracy Spratt ha scritto: >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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of devis >Sent: Tuesday, August 02, 2005 4:13 AM >To: flexcoders@yahoogroups.com >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 > > > > > > > > > > > > >-- >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=12hqvugka/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123059324/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</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/