[ 
https://issues.apache.org/jira/browse/FLEX-33869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810171#comment-13810171
 ] 

Maurice Amsellem commented on FLEX-33869:
-----------------------------------------

I have run through the code and probably can see why it's not working:  when 
spark DataGroup attemps to update the render, it' not there already as it has 
been filtered, so DataGroup just retuns, doing nothing.
I think it should remove the renderer or something, when it can't be found.
However, DataGroup is a most critical class and any change could have numerous 
impacts of many components.
I don't have the knowledge to make that change, sorry.
Maybe a senior member of the team could provide a fix.
In the meantime, I suggest you call "refresh()"  as a workaround.

{code}
 DataGroup  setUpItemRenderer(renderer:IVisualElement, itemIndex:int, 
data:Object):void
    {
        if (!renderer)
            return;
{code}

> Using a filter function to hide item from a data provider has no effect on a 
> spark list
> ---------------------------------------------------------------------------------------
>
>                 Key: FLEX-33869
>                 URL: https://issues.apache.org/jira/browse/FLEX-33869
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: List
>    Affects Versions: Apache Flex 4.11.0
>            Reporter: Alexander Scheibe
>         Attachments: FilteredTest.fxp
>
>
> Steps to re-produce the bug: 
> 1) have a data provider (ListCollectionView, e.g. ArrayCollection) with a 
> filter function and one item
> 2) change a property of that item so the filter function will hide it from 
> the view.
> Is: 
> Item is still shown in the spark list
> Expected:
> Item is hidden in the list



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to