The renderers have a data property which gets refreshed under certain
situations.  They then follow the component lifecycle in updating their
display.   In theory the setter for the data property must be hit when
you see things go bad.  The DG has a makeRowsAndColumns method that
typically does the refresh.  It might be interesting to find out if and
why it gets called when things go bad.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alan
Sent: Friday, August 22, 2008 10:52 AM
To: [email protected]
Subject: Re: [flexcoders] [video included] Datagrid recycle issue? How
can I 'force' it to re-render

 

Thanks for taking the time to respond,

 

I have been debugging it, but any other debugging suggestions would be
welcomed.

 

While debugging, I put a breakpoint at my data provider variable, and
the break point is tripped whenever new data is loaded, the datagrid is
instaciated etc...; however, the breakpoint is not tripped when that
phenomenon of the datagrid 'refreshing'  as in the video.  So it's not
accessing the data provider.  

 

Do you mind suggesingt some other events / variables I should  watch
while debugging.  

 

How can I see what events are being dispatched when I am interacting
with other UI objects -  can someone suggest a good in depth reference I
can read up on debugging with Eclipse.

 

Thanks

 

On Aug 22, 2008, at 1:24 PM, Alex Harui wrote:





 

You will have to debug your situation.  There's no way to tell from a
video what events are firing.  If the dataProvider or any of a number of
properties change, the DG will update all the rows.  The real question
is whether you've handled recycling correctly or if there is some other
problem.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alan
Sent: Friday, August 22, 2008 9:42 AM
To: [email protected]
Subject: [flexcoders] [video included] Datagrid recycle issue? How can I
'force' it to re-render

 

Link to video:

http://www.alanklement.com/download/datagrid.mov
<http://www.alanklement.com/download/datagrid.mov> 

I understand that the datagrid is recycling cells, makes sense. I've 
checked out Alex's blog, but can't find a solution to this situation.

Oddly enough, you can see that the datagrid refreshes correctly when I 
interact with display objects other than the grid itself.

What events are being fired by the other display objects that are 
causing the grid to 'refresh'.

Thanks for your time:

Alan

 

 

 

 

Reply via email to