[flexcoders] Re: Number of viewable rows in datagrid

2008-11-10 Thread creativepragmatic
I figured it out.  Instead of using creationComplete, I used the 
render event.


--- In flexcoders@yahoogroups.com, creativepragmatic 
[EMAIL PROTECTED] wrote:

 Hello Everyone,
 
 This seems like it should be easy to do.  I am trying to get the 
 number of visible rows in a datagrid component.  When using the  
 creationComplete event of DataGrid, the number of rows is always 7 
 after the SWF is loaded.  That is incorrect.  There are 27 rows.  
Does 
 anyone know how I can get Flex to return the correct number of rows 
 after?
 
 Thank you for any assistance given,
 
 Orville






[flexcoders] Re: Number of viewable rows in datagrid

2008-11-10 Thread Tim Hoff

Hi Orville,

You might want to see if it works with the updateComplete or valueCommit
events.  Using he render event can be very expensive; as it fires
everytime the display list is updated.

-TH

--- In flexcoders@yahoogroups.com, creativepragmatic
[EMAIL PROTECTED] wrote:

 I figured it out. Instead of using creationComplete, I used the
 render event.


 --- In flexcoders@yahoogroups.com, creativepragmatic
 creativepragmatic@ wrote:
 
  Hello Everyone,
 
  This seems like it should be easy to do. I am trying to get the
  number of visible rows in a datagrid component. When using the
  creationComplete event of DataGrid, the number of rows is always 7
  after the SWF is loaded. That is incorrect. There are 27 rows.
 Does
  anyone know how I can get Flex to return the correct number of rows
  after?
 
  Thank you for any assistance given,
 
  Orville