Click should be just as good, but usually the code looks like:

Click="data.someProperty = displayCheckBox.selected" because data is the 
arraycollection item you are editing.  If the data objects are not [bindable], 
then you further have to call arrayCollection.itemUpdated() to force a 
collection change event.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Keith Hughitt
Sent: Friday, January 23, 2009 11:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ArrayCollection COLLECTION_CHANGE event doesn't fire 
right away?


Hi Alex,

Thanks for the suggestion. I was already trying to set the value using
the click-handler, but even using change, I still am not having any luck:

change="cbSelected = displayCheckBox.selected;"

(The data-binding is somewhat indirect: the checkbox sits inside a
HBox, which I've given a "cbSelected" property that is then set as the
columns "editorDataField" field, similar to the last example from the
"Returning data from an item editor" section:
http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_1.html
in the Flex 3 Help pages.)

Am I setting the change handler properly?

Thanks,
Keith

Reply via email to