I was looking at the source.  You'll need an inline renderer with
selectedField set to some property in your  data that will record
whether it is selected or not.
 
If you want to store that elsewhere, then you'll need more subclassing
and set up a centralized repository of what is selected.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Root
Sent: Tuesday, March 27, 2007 1:01 PM
To: [email protected]
Subject: Re: [flexcoders] List Control with checkbox items



Anyone else got any ideas here?


On 3/27/07, Rick Root <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

        (wow, gmail makes it difficult to quote emails from yahoo
groups!)
         
        That almost works.... here's my MXML:
         
          <mx:List allowMultipleSelection="true" height="203"
width="360"
dataProvider="{parentDocument.ro.getListData.lastResult.CONTROL_CODES}"
labelField="TABLFLD" id="lstControlCodes" 
            rendererIsEditor="true" itemRenderer="mx.controls.CheckBox">
          </mx:List>
        
        The problem here is that the checkboxes do not relate to the
actual selected status of the items.  For example, if I click 3
different items without holding down the control key, all 3 items have
checkboxes, but only one (the last) is highlighted in blue.. meaning
it's the only one REALLY selected as far as the list control is
concerned. 
        
         
        Rick


        -- 
        CFMBB - Coldfusion Message Boards, Version 1.21 Now Available!
        http://www.cfmbb.org <http://www.cfmbb.org/>  




-- 
CFMBB - Coldfusion Message Boards, Version 1.21 Now Available!
http://www.cfmbb.org <http://www.cfmbb.org>  

 

Reply via email to