Ben,

I wanted to thank you for your help.  I'm now starting to 'get it'.
Thanks to Tracy also.

Jeff

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, November 22, 2006 8:04 PM
To: [email protected]
Subject: [flexcoders] Re: TileList Issue - What the heck is up?????


Hi Jeff,

The key is to override the data method in your renderer. Without this
step you will get very unpredictable behavior. My latest two blog
postings have discussed this exact topic in detail.

http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-pri
mer-for-predictable-behavior
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers
-with-classfactory/

Let me know if you have any further questions or if any aspects still
aren't clear after reading those.

HTH,
Ben



--- In [email protected], "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> Tracy,
>  
> You're a big help - thanks. I'm still wrestling with updating my 
> dataprovider with the state of the checkbox. I'm fuzzy on how I get 
> which item in the dataProvider the item renderer maps to.  I can tell 
> you, I don't think this should be as difficult as it seems to be.  
> There should be a simple way of binding/mapping the UI Object state to

> the dataProvider and vice versa.  Maybe there is, but I don't know 
> what it is.
>  
> Jeff
>  
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
> On Behalf Of Tracy Spratt
> Sent: Tuesday, November 21, 2006 9:36 PM
> To: [email protected]
> Subject: RE: [flexcoders] TileList Issue - What the heck is up?????
> 
> 
> 
>       Yep, I think that's the cleanest way.  I suppose you could have
the 
> renderer grab the checkbox state from the external array, but if you 
> can control the dataProvider structure, you can do away with that 
> array entirely.
> 
>        
> 
>       Tracy
> 
>        
> 
>       
>   _____
> 
> 
>       From: [email protected]
[mailto:[EMAIL PROTECTED] 
> On Behalf Of Battershall, Jeff
>       Sent: Tuesday, November 21, 2006 8:43 PM
>       To: [email protected]
>       Subject: RE: [flexcoders] TileList Issue - What the heck is
up?????
> 
>        
> 
>       Tracy,
> 
>        
> 
>       No, I'm not updating the dataprovider - just the UI elements 
> themselves.  I have been capturing each click event and using that 
> information to populate an array.  Sounds like updating the 
> dataprovider is in fact the way to go and I'm going to try that.
> 
>        
> 
>       Jeff
> 
>        
> 
>       -----Original Message-----
>       From: [email protected]
[mailto:[EMAIL PROTECTED] 
> On Behalf Of Tracy Spratt
>       Sent: Tuesday, November 21, 2006 5:16 PM
>       To: [email protected]
>       Subject: RE: [flexcoders] TileList Issue - What the heck is
up?????
> 
>               When you check the checkbox, are you updating the
dataProvider 
> property, and is the renderer setting the checked state based on that 
> property?
> 
>                
> 
>               Remember that data-driven controls re-use the visual
elements when 
> you scroll.
> 
>                
> 
>               Tracy
> 
>                
> 
>               
>   _____
> 
> 
>               From: [email protected]
[mailto:[EMAIL PROTECTED] 
> On Behalf Of Battershall, Jeff
>               Sent: Tuesday, November 21, 2006 2:54 PM
>               To: [email protected]
>               Subject: [flexcoders] TileList Issue - What the heck is
up?????
> 
>                
> 
>               I'm reposting this due to no response:
>               
>               Background: I've created a custom mxml component using
CheckBox as 
> the
>               item renderer. It is driven by a dataprovider that
> creates a number of
>               columns of checkboxes with their associated labels. Due
> to the size of
>               the dataprovider, a horizontal scrollbar is needed.
>               
>               The behavior is, when I select checkboxes in the visible
area and 
> then
>               scroll horizontally (hiding the ones I just checked) and
then go 
> back -
>               the checkboxes are no longer checked. Has anyone seen
this?????
>               
>               Jeff Battershall
>               Application Architect
>               Dow Jones Indexes
>               [EMAIL PROTECTED]
<mailto:jeff.battershall%40dowjones.com>
>               (609) 520-5637 (p)
>               (484) 477-9900 (c)
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



Reply via email to