Tag Archive for 'GroupingCollection'

GroupingCollection -> HierarchicalCollectionView

This post is a continuation of “Distinct Data Providers with GroupingCollection.” The code and example is extremely similar - there are a couple minor changes to accommodate one addition: the use of HierarchicalCollectionView.

What’s new?

We saw in the previous post that a GroupingCollection works very well for creating a grouped data provider for an AdvancedDataGrid or even for use in part in a List or ComboBox control. But there’s a(nother/ better) way to populate that distinct List or ComboBox from the GroupingCollection. Use a HierarchicalCollectionView. It’s a more elegant solution and also lets you use your grouped data to populate a Tree or Menu control! Continue reading to try it out and view code.

Continue reading ‘GroupingCollection -> HierarchicalCollectionView’

Distinct Data Providers with GroupingCollection

Update: This post is updated and continued in the next post, “GroupingCollection -> HierarchicalCollectionView.” Please see that post for additional (better) suggestions.

This post is itself an update to “DistinctArrayCollection extends ArrayCollection.” The old post describes the problem and proposes a solution. I did not post code in that article because I felt like there had to be a better way of doing things. Here’s a better way (see the update for a much better way): use the GroupingCollection class in Flex 3. Continue reading to try it out and view code.

Continue reading ‘Distinct Data Providers with GroupingCollection’