1 Reply Latest reply on Feb 17, 2011 8:54 PM by BhaskerChari

    How to refresh mx:List when the data in dataProvider is changed

    Johnking08 Level 1

      I have a mx:List that uses an ArrayCollection as a dataProvider. The ArrayCollection contains many Object, something like:


      var o:Object = new Object();

      o.label = "Apple";

      o.price = "$1.00";


      var o:Object = new Object();

      o.label = "Kiwi";

      o.price = "$0.20";




      Now the dataProvider (ArrayCollection) is updated outside the mx:List, not through the itemEditor. I want the mx:List to show the changes in the

      dataProvider (ArrayCollection), but currently it does not automatically show the changes. I could not find a refresh method in the List or dataProvider

      to force the List to reload the data. Any suggestions?