I don't know if you've followed the thread about "multipurpose item renderers" or other recent threads I've responded to, but you'll see me constantly pushing for "following the recipe". This is particularly true in renderers because they get recycled so that one instance of the renderer can be re-used to display some other data item in the dataprovider. The renderer isn't quite "following the recipe". Normally, a renderer does not listen for change events from the owner list. Instead, we recommend that visual updates be done in overrides of updateDisplayList which will be called on your renderer when selection changes, and a call to isItemSelected should let you update the checkbox appropriately. I don't think I'd be trying to update visuals in a setter for listData either. I can't guarantee that is your problem, but could eliminate some timing/recycling issues. So, I'd start there and see if that clears up the issue. Apparently, it is difficult for many of you to find the appropriate documentation on how to build renderers. Where are you looking and what can we do better to help you understand the "process"? -Alex
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ricrootnc Sent: Tuesday, October 02, 2007 9:04 AM To: [email protected] Subject: [flexcoders] Re: Problem filtering custom list component Ping .... Sadly, I'm still stumped by this one. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Rick Root" <[EMAIL PROTECTED]> wrote: > > So I'm using this CheckBoxList component that someone on this list > created for me. > > I've got a problem though when filtering the list using the > dataProvider's filterFunction property. > > SOMETIMES the list items remain selected when they disappear from view > due to being filtered, and sometimes they don't. The problem is > somewhat erratic as to WHEN it happens. > > A secondary problem, which I can't replicate in my test app, is that > when I clear the list by setting the selectedIndex property to -1, > *SOMETIMES* the actual checkboxes stay checked, even though the items > aren't selected any more (the blue highlight goes away, but the > checkbox stays). > > The MXML code CheckBoxListTest.mxml, along with the components > (CheckBoxList.as and CheckBoxListItemRenderer.as) are linkable from > the test application: > > http://www.it.dev.duke.edu/public/CheckBoxListTest.html <http://www.it.dev.duke.edu/public/CheckBoxListTest.html> > > I appreciate any inside folks can offer. > > > -- > Rick Root > Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at > www.opensourcecf.com >

