Multiple Collection Filters are now Possible in Flex!

That’s right, you can now apply multiple filters on a collection. Yes, you could have multiple filters but it was usually a pain and very ugly until now.

The core to this solution was created by Cristian Rotundu and can be found at:

http://blog.rotundu.eu/flex/arraycollection-with-multiple-filter-functions/#comment-50.

This solution works by extending the ArrayCollections class to add an additional array of filters. It is quite simple but very powerful. I am sure this could be made a little more dynamic, but why? Cristi’s solution was spot on and very useful. So if you need to leverage multiple filters then you need to check out this solution.

Usefulness: 10 out of 10

Ease of implementation: 8 out of 10

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>