Flex / ArrayCollection / Sort delay?

November 18th, 2008 § 2

Hey:

Im having a little issue with the FLEX Sort class with an ArrayCollection. It seems sorting is not instant? In my application I get data, sort it, then set the dataprovider of a List to the sorted data.

Visually, the application shows the data in its unsorted form, then a couple of moments later the List refreshes and shows the sorted data.

Is there a workaround?

§ 2 Responses to “Flex / ArrayCollection / Sort delay?”

  • Wael Jammal says:

    Have you tried using enable/disable auto update then refreshing at the right time?

    You can disable the auto update first so nothing shows in your list then accomplish your filter and enable auto update then force a refresh on your collection to update the list.

  • Pwac says:

    Do a refresh() juste after calling sort()

  • § Leave a Reply

What's this?

You are currently reading Flex / ArrayCollection / Sort delay? at Digital John.

meta