12 Replies Latest reply on Sep 5, 2013 1:01 AM by kodcu

    How to detect dataprovider change in spark List ?


      The problem is : when the dataprovider changes, the List unselects its items. I want the selected item of the List to stay selected, even if the dataprovider has a new item, for example.


      So I try to detect a change in the dataprovider, to be able to re-select the item that was selected before the change.

      I tried to listen several events but it didn't work :

      - change is dispatched by user, not by code.

      - updatecompleted is dispatched when the dataprovider changes but it is triggered also when the list is resized, and I don't want that.

      - collectionChange is not dispatched


      I don't understand why valueCommit is not dispatched when the dataprovider changes.


      Can you help me ???