Do you mean that the .selected property isn't set right? or the data
object isn't updated?
 
It should be set by the time the Checkbox (not the List) dispaches
CHANGE.
 
If you're referring to the data object, you're responsible for updating
it.  It is better to work from that than from the renderers anyway since
they might get recycled.
 
You can also try low priority listeners as well.
 
-Alex

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of arieljake
Sent: Monday, September 03, 2007 10:38 AM
To: [email protected]
Subject: [flexcoders] List of checkboxes control - help handling events



I have a list of checkboxes just like the one posted on alex h's blog.

I am trying to modify it so I get an event when a checkbox is clicked
so I can POST to the server. The trouble is asking for the right
event, because none seem to work right.

Though the CLICK and CHANGE events on the LIST do result in changes to
the state of the checkbox renderers, they are fired BEFORE the
checkbox is updated.

I added a bubbling CHANGE event to the checkbox renderer when its
state is changed, but it gets fired when the list is rendering itself. 

I tried to fix this by adding an "isActive" field to the checkbox list
itself that gets set to false when its state is being changed and back
to true when its UPDATECOMPLETE event is fired. But that only works
when I am responding to changes in its dataProvider. Not when
scrolling happens, as I just found.

Any ideas?



 

Reply via email to