You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Joel Anderson (JIRA)" <ji...@apache.org> on 2017/01/03 23:32:58 UTC

[jira] [Updated] (FLEX-35232) Filter for ArrayList Data Providers

     [ https://issues.apache.org/jira/browse/FLEX-35232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joel Anderson updated FLEX-35232:
---------------------------------
    Attachment: 2017_01_03__TestFilteredArrayList.zip

I have attached a modified version of the project where the visible elements of the FilteredArrayList are stored with the superclass logic, while the full list is maintained as a separate ArrayList instance.   This makes FilteredArrayList throw the appropriate itemAdded, itemRemoved, and itemUpdated events for the visible list (itself) rather than for the full list, as it did in the previous version.

The updated source is in:  2017_01_03__TestFilteredArrayList.zip

The updated example also automatically refreshes the list when you click the Update/Add/Remove Entry buttons, for convenience.

Otherwise, the logic has the same limitations discussed above.


> Filter for ArrayList Data Providers
> -----------------------------------
>
>                 Key: FLEX-35232
>                 URL: https://issues.apache.org/jira/browse/FLEX-35232
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: FlexJS
>            Reporter: Joel Anderson
>            Priority: Minor
>              Labels: flexjs
>         Attachments: 2017_01_03__TestFilteredArrayList.zip, TestFilteredArrayList.zip
>
>
> I created this issue to track the progress for the feature discussed here:  http://apache-flex-development.2333347.n4.nabble.com/Filter-function-to-ArrayList-td57239.html
> The idea is add filtering based on a search string (or other criteria) for an ArrayList.  This could then be used to add filtering to a DataGrid or List UI component.
> This is one of the features provided by the ArrayCollection class in Flex:  http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/collections/ListCollectionView.html#filterFunction



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)