What is dataProvider.length after refresh()?

You still seem to be trying to filter at the same time you are setting the
data provider.  Without understanding your actual scenario it isn't clear
what to recommend.  If you have a small test case, create a JIRA issue for
it.

-Alex

On 3/15/16, 11:39 AM, "mark goldin" <[email protected]> wrote:

>Seems like I am filtering dataProvider correctly.
>Here is my latest code:
>set dataProvider:
>super.dataProvider = value;
>summaryLoaded();
>
>private function summaryLoaded():void
>{
>      ArrayCollection(dataProvider).filterFunction =
>watchListFilterHiddenAssets;
>      ArrayCollection(dataProvider).refresh();
>      validateNow();
>}
>
>For testing watchListFilterHiddenAssets returns false for every item.
>Still
>Grid shows all the data.
>
>On Tue, Mar 15, 2016 at 12:26 PM Alex Harui <[email protected]> wrote:
>
>>
>>
>> On 3/15/16, 10:20 AM, "mark goldin" <[email protected]> wrote:
>>
>> >Did you mean like this?
>> >super.dataProvider = value;
>> >ArrayCollection(dataProvider).filterFunction =
>> >watchListFilterHiddenAssets;
>> >ArrayCollection(dataProvider).refresh();
>> >
>> >That did not change anything.
>>
>> Well, if you want to filter immediately after setting, you may need a
>> validateNow() call.
>>
>> But it sounds to me like you are setting the dataProvider more than
>>once.
>> Usually when folks change the filters, they do not set the dataProvider
>> again.
>>
>> HTH,
>> -Alex
>>
>>

Reply via email to