Re: [flexcoders] Performace please some suggestion

2005-08-03 Thread Manish Jethani
On 8/2/05, devis <[EMAIL PROTECTED]> wrote:

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

> function Init_Taglie()
>   {
>   dgmisure.removeAllColumns();
>   myColumn= new DataGridColumn();
>   myColumn.headerText = "Stato";
>   myColumn.width=50;
>   myColumn.columnName="strecz";
>   dgmisure.addColumn(myColumn);
[...]

Does creating the columns array first and then setting them all at once help?

  var columns:Array = [];
  // build array
  dgmisure.columns = columns;

Manish


 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12h2mg9ib/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123098980/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!.
~-> 

--
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/
 




Re: [flexcoders] Performace please some suggestion

2005-08-02 Thread Devis
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  {
>
>  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 ~--> 
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.
~-> 

--
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/
 





RE: [flexcoders] Performace please some suggestion

2005-08-02 Thread Tracy Spratt
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;rowhttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 







 Yahoo! Groups Sponsor ~--> 
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!.
~-> 

--
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/
 





[flexcoders] Performace please some suggestion

2005-08-02 Thread devis
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 
http://us.ard.yahoo.com/SIG=12hsgbt8n/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122977600/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.
~-> 

--
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/