0 Replies Latest reply on Jun 13, 2007 12:40 PM by m00n_23

    CollectionEvent update vs. move (Bug?)


      I have a strange behaviour and would like to know if this is a bug, feature or miscoding by myself.

      I have an arrayCollection with several objects displayed by a DataGrid. If a parameter of one of the objects changes a CollectionEvent.COLLECTION_CHANGE event is dispatched by default. This work fine so far and the event.kind of this event is "update".

      The problem is that the DataGrid is sortable. If the property changed that the DataGrid sorts on the event.kind will change to "move" and no "update" event is dispatched at all. If this is a feature, how do can I access the changed properties? The "update" event includes a PropertyChangeEvent in the items Array, which is pretty handy. But this doesn't work if the event.kind is "move"