I experienced this when checking a CheckBox itemRenderer inside a
DataGrid a few motnhs back. I thought I had determined that it was a
change in the underlying dataProvider that caused the problem, but if
you're experiencing it just selecting an entire list item that sounds
different (but obviously related). I did have some trouble reproducing
this bug consistently.

I reported this to our support contact at Adobe but last I heard the
engineers were unable to reproduce it. He suspected it might be a bug
that was introduced in 2.0.1. Is that the version you're using?

There is a fairly painless workaround. In my case, just before
updating the item in the dataProvider, I would set the filterFunction
to null, then update the value, then reassign the filterFunction. You
don't need to call refresh() (I am assuming your dp is an
ArrayCollection), so the list won't unsort and resort or anything like
that. Sample code below:

var ff:Function = myAC.filterFunction;
myAC.filterFunction = null;
myAC.getItemAt(someIndex).someValue = newValue;
myAC.filterFunction = ff;

HTH,
Ben


--- In [email protected], Frank Sommers <[EMAIL PROTECTED]> wrote:
>
> I have a List, and when a filter function is assigned to that list,  
> whenever a selection is made (by clicking on a list item), the list  
> items re-arrange in a strange way. I wonder why this is happening.  
> When I remove the filter function, this does not occur. Any  
> suggestions would be appreciated.
> 
> Thanks,
> 
> -- Frank
>


Reply via email to