You said your code was working as expected before. How did your code work before? How did you handle this "move" situation successfully before?
I simply listened for CollectionEvent. The event handler checked the
event.kind. If it was "move" I would make my web service call to save the new order to the server.
Then I get a call from someone at work who says, "Hey the reordering is not saving any more". I have no idea how long it has not been working. When I debug I see that the collection event kind is never "move" so it never triggers the web service call.
Am I missing something about the collection change "move"??
yes i noticed the same with the new ArrayList class. The ArrayList class doesnt even have code for MOVE events.
On the other hand, i tried debugging the ArrayCollection code to see when the MOVE event is triggered using a simple list (spark list) and dragMoveEnabled set to true. And it doesnt work. There is some code that is supposed to handle MOVE in ArrayCollection but it never gets triggered.
I always get 2 events like you described. This seems to me like a regression and ill try to file a bug for it
ok because ArrayList is supposed to be a simple implementation of IList, which is a design decision that i question. I understand that ArrayList cant support filters and sorts like ArrayCollection, but a MOVE seems to be an evident thing for me, since the spark List takes an IList at a minimum, and a spark list can move items around.
Wait a minute , are we talking about an ArrayCollection , or an ArrayList. You mention ArrayCollection in your leading post , but some of us read that as ArrayList. ArrayCollection , CollectionChange event is defined by the ListCollectionView class. Whereas the ArrayList has its CollectionChange event dispatching defined by the ArrayList class. EIther way , your problem is perplexing.