I did this, set the scrollbar before I refresh the view.

targetComponent.horizontalScrollPosition = 0; // VERY IMPORTANT - the
tileList screws up the view if this is not called first
targetComponent.dataProvider.filterFunction = filterPartsFunction;
targetComponent.dataProvider.refresh();

and it seems to be ok now :)

I do have another problem with this I'll post into a new thread

On May 25, 10:45 am, "r...@antic" <[email protected]> wrote:
> I have a custom itemrenderer called equip_renderer it contains 2
> images.
>
> These renderers are loaded into a tileList. This displays correctly
> and works well.
>
> I have a button on the stage , when clicked does this:
>
>                         targetComponent.dataProvider.filterFunction = 
> filterPartsFunction;
>                         targetComponent.dataProvider.refresh();
>
> the filterFunction performs a simple filter and returns true/false.
>
> This works completely.
>
> The problem occurs in that sometimes, the tileList when filtered,
> shows empty slots where the filtered tiles were.
> IT is the exact number of spots and the scrollbar is visible and
> allows you to scroll into that space.
>
> Any ideas why filterFunction afftects TileList like this ? and
> solutions to make it behave correctly. I am using the same code with a
> datagrid and it works correctly, not showing empty rows
>
> Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to