In conventional application we often found a list/grid with a search text
box. This was easy to handle and filter the collection in Flex SDK, and
affect the list/grid UI per it's binding.
> private function filterCollectionOnTextSearch():void
> {
> gridArrayCollection.filterFunction = searchName;
> gridArrayCollection.refresh();
> }
>
> private function searchName(item:Object):Boolean
> {
> if (item.nickName.toLowerCase().indexOf(txtSearch.text.toLowerCase()) !=
> -1 ) return true;
> return false;
> }
FlexJS uses it's own ArrayList API and I didn't found any way to accomplish
the above requirement, so far. Is there any built-in way to filter the
ArrayList and refresh - and update to list/grid component per it's binding
feature?
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/Filter-function-to-ArrayList-tp57239.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.