Sounds like your itemRenderer might not be clearing out old data
correctly.  Check out Question 2 in Amy's FAQ:

http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
<http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf>

-TH

--- In flexcoders@yahoogroups.com, Rohit Sharma <rohit.sharma1...@...>
wrote:
>
> Hi All,
>
> I am stuck up with this problem. Please provide some insight into
> it.
>
> " I have a list component which shows all the game rooms currently
existing.
> As soon as some property of the room changes,
> I update the corresponding item in the dataprovider using setItemAt.
(I
> typecast dataprovider as Arraycollection).
> Recently I added some filters to the room list using
> filterfunction. As soon as I start applying filters, I see few items
getting
> duplicated in the list. Some items exist with old values as well as
new
> values.
> I also tried making the filtering and updating actions mutually
> exclusive using flags hoping that two different actions taking
> place on the same data might cause duplication of items. But the
duplication
> is still taking place.
> In fact I tried using itemUpdate() also in place of setItemAt but the
> problem still persists.
> I have also tried modifying only the source array during updates
because the
> filtering takes place only on the ArrayCollection and
> not on the source array but this also failed."
>
> Any inputs will be appreciated.
>
> Thanks,
> Rohit
>


Reply via email to