In your itemRenderer, you must update a property in the dataprovider
item when the user causes the state to change, and in the overrides set
data() function, you must read this item property and set the state
accordingly.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Bray
Sent: Saturday, February 24, 2007 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List itemRenderer problem with example

 

Here are the steps to see my issue in action:

1. go to http://www.tombray.com/queryBuilder/
<http://www.tombray.com/queryBuilder/> 
2. click the plus sign twice to create two more list items
3. change the first combobox in the first item to "Date" and notice 
that the itemRenderer changes state
4. click the minus sign in the first item (the one you just set to Date)
5. notice that the bottom itemRenderer is now in the "Date" state but 
shouldn't be.

So, I'm assuming that the List is recycling itemRenderer instances 
for efficiency, but I'd like a better understanding of what's going 
on and a recommended strategy for dealing with this. Any help? Thanks!

-Tom

 

Reply via email to