[flexcoders] Re: expandable itemRenderer with state inside a list

2007-01-03 Thread gdoucen
Thanks tracy. 

It works now...But the behavior of the scrollbar when scrolling is
annoying. It resizes itself all the time. I suppose that items that
are no longer visible are removed from the displayList. This behavior
is ok when all items have the same height.

have u any idea to change this?


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

 Ah, yes, I'd read your post, but hadn't thought through the logic to see
 that set data would need to be called on resize.
 
  
 
 Did you look into updateDisplayList?
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Jim Robson
 Sent: Tuesday, January 02, 2007 1:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: expandable itemRenderer with state inside a
 list
 
  
 
 Tracy:
 
 I think that your comments here address the question I was trying to
 ask in my post. This would seem to explain why the set data() function
 is called on resize: When the item renderer's contents are resized,
 the DataGrid needs to re-draw itself (just as it does on scrolling);
 your comments below seem to explain why the DataGrid calls set data()
 when it redraws itself.
 
 Thanks!!!
 
 -Jim
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  To make itemRenderer states work correctly during scrolling, you must
  update a dataProvider item property to record that state on user
 action,
  then in the set data() function, ( or in the updateDisplayList()
  function) you must read this state property and set the item renderer
  state accordingly.
  
  
  
  List-based controls re-use the same visual elements when you scroll,
  they just change the data.
  
  
  
  Tracy
  
 





RE: [flexcoders] Re: expandable itemRenderer with state inside a list

2007-01-03 Thread Tracy Spratt
Sorry, that level of graphics behavior is beyond me.  Maybe someone else
will help.  If no one helps on this thread, start another topic with
this current issue.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gdoucen
Sent: Wednesday, January 03, 2007 3:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: expandable itemRenderer with state inside a
list

 

Thanks tracy. 

It works now...But the behavior of the scrollbar when scrolling is
annoying. It resizes itself all the time. I suppose that items that
are no longer visible are removed from the displayList. This behavior
is ok when all items have the same height.

have u any idea to change this?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Ah, yes, I'd read your post, but hadn't thought through the logic to
see
 that set data would need to be called on resize.
 
 
 
 Did you look into updateDisplayList?
 
 
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Jim Robson
 Sent: Tuesday, January 02, 2007 1:14 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: expandable itemRenderer with state inside a
 list
 
 
 
 Tracy:
 
 I think that your comments here address the question I was trying to
 ask in my post. This would seem to explain why the set data() function
 is called on resize: When the item renderer's contents are resized,
 the DataGrid needs to re-draw itself (just as it does on scrolling);
 your comments below seem to explain why the DataGrid calls set data()
 when it redraws itself.
 
 Thanks!!!
 
 -Jim
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt tspratt@ wrote:
 
  To make itemRenderer states work correctly during scrolling, you
must
  update a dataProvider item property to record that state on user
 action,
  then in the set data() function, ( or in the updateDisplayList()
  function) you must read this state property and set the item
renderer
  state accordingly.
  
  
  
  List-based controls re-use the same visual elements when you scroll,
  they just change the data.
  
  
  
  Tracy
  
 


 



[flexcoders] Re: expandable itemRenderer with state inside a list

2007-01-02 Thread Jim Robson
Tracy:

I think that your comments here address the question I was trying to
ask in my post. This would seem to explain why the set data() function
is called on resize: When the item renderer's contents are resized,
the DataGrid needs to re-draw itself (just as it does on scrolling);
your comments below seem to explain why the DataGrid calls set data()
when it redraws itself.

Thanks!!!

-Jim

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

 To make itemRenderer states work correctly during scrolling, you must
 update a dataProvider item property to record that state on user action,
 then in the set data() function, ( or in the updateDisplayList()
 function) you must read this state property and set the item renderer
 state accordingly.
 
  
 
 List-based controls re-use the same visual elements when you scroll,
 they just change the data.
 
  
 
 Tracy
 
  




RE: [flexcoders] Re: expandable itemRenderer with state inside a list

2007-01-02 Thread Tracy Spratt
Ah, yes, I'd read your post, but hadn't thought through the logic to see
that set data would need to be called on resize.

 

Did you look into updateDisplayList?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Robson
Sent: Tuesday, January 02, 2007 1:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: expandable itemRenderer with state inside a
list

 

Tracy:

I think that your comments here address the question I was trying to
ask in my post. This would seem to explain why the set data() function
is called on resize: When the item renderer's contents are resized,
the DataGrid needs to re-draw itself (just as it does on scrolling);
your comments below seem to explain why the DataGrid calls set data()
when it redraws itself.

Thanks!!!

-Jim

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 To make itemRenderer states work correctly during scrolling, you must
 update a dataProvider item property to record that state on user
action,
 then in the set data() function, ( or in the updateDisplayList()
 function) you must read this state property and set the item renderer
 state accordingly.
 
 
 
 List-based controls re-use the same visual elements when you scroll,
 they just change the data.
 
 
 
 Tracy