filter
The HierarchicalCollectionView class is part of the advanced data visualization components that come with Flex Builder 3 Professional. It is used by the AdvancedDataGrid to represent a view of a hierarchical collection. This class includes functionality to construct a hierarchy; to open and close nodes; to apply filters and sorts; to iterate through the hierarchy; to monitor the data for changes; and to query the visible state of the data.
Problem
You want to apply a filter function to a HierarchicalCollectionView to filter some data that is only in the parent or only in the children.
Solution
Any function applied to the filterFunction of HierarchicalCollectionView is applied to all of the elements in the collection. It can filter items at different levels of the hierarchy as long as the method itself understands the hierarchy.
