What would cause a SkinnableDataContainer's (SDC) data to not be properly refreshed once a filterfunction and ListCollectionView is removed?
I am creating a ListCollectionView on an arrayCollection, which is used for the SDC's dataProvider. I am then setting a filter function on the new ListCollectionView, refreshing it, and then setting the SDC's dataProvider to the new ListCollectionView. Everything works fine until I want to remove the ListCollectionView and restore the old arrayCollection as the dataProvider. The SDC does not show all of the items. Below is the code I am using.
// create the new LCV and set filterFunction
searchCollection = new ListCollectionView();
searchCollection.list = model.allAssets
searchCollection.filterFunction = filterSearch;
dataGroup.dataProvider = searchCollection;
// remove LCV and restore original array collection as dataProvider
searchCollection.filterFunction = null;
dataGroup.dataProvider = model.allAssets;
If you iterate through model.allAssets, does it have all the items?
Looking in the variables window (debug mode) at model.allAsset, all of the items are listed. However, all of the items are not being displayed visually.
Try a simple test case and if it still happens there, file a bug or post the