Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-25-2010, 08:38 PM   PM User | #1
bon_t
New Coder

 
Join Date: Jul 2010
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
bon_t is an unknown quantity at this point
CollectionEvent UPDATE event dispatched more than necessary

Hello,

I am using Flex 4. The objects that populate my data grid have these two fields: tag and transcribedText. Both of these fields are editable.

When I make a change/changes to the same record, the COLLECTIONEVENT UPDATE event is dispatched more than necessary, creating redundant PropertyChangeEvent objects.

Please refer to the following example. I have screenshots to give more details but am unable to copy/paste or attach them.

1. I first changed the transcribedText from “add services” to “add services TODAY”.
2. I then changed the tag from “OrderGeneral” to “OrderInternet”.
3. I finally clicked outside of the affected line.

The COLLECTIONEVENT UPDATE event is dispatched THREE times.

1. In the first dispatch, there are two PropertyChangeEvent objects, and the second one is a repeat of the first one (transcribedText change) but with oldValue and newValue both set to null.
2. In the second dispatch, there is only one PropertyChangeEvent object, and it correctly captures the tag change.
3. In the third dispatch, there is only one PropertyChangeEvent object, and it is a repeat of the previous tag change but with oldValue and newValue both set to null.

Why is this happening?
Thanks for your help!
Bonnie
bon_t is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:56 AM.


Advertisement
Log in to turn off these ads.