I have an (empty) ArrayCollection that I wrap with a ListCollectionView. Then I add a series of items to the ArrayCollection, but these are not showing up in the view.
public var transactions : ArrayCollection = new ArrayCollection();
public var filteredTransactions : ListCollectionView = new ListCollectionView(transactions);
transactions
contains 150 items, filteredTransactions
contains none. I originally thought it was the filter I was applying, but even when I remove the filter, I still get no items in the filtered list.
Have I missed a step? Do I need to add the items to the view as well as the underlying collection (this would seem to defeat the purpose of using a view though...)?
If you aren't using addAll, addItem, or addItemAt to put items in the ArrayCollection, try that as a solution first. Adding items directly to the Array that the ArrayCollection wraps will not dispatch CollectionEvents.
Also, try to use the ListCollectionView's refresh() method after setting its list property to the ArrayCollection.
If neither of these solutions work then please post additional code.