What are you trying to do? Say you've got:

_ item 1
_ item 2
_ item 3
_ item 4
_ item 5
_ item 6

If I click the checkbox on item 2, then I click the checkbox on item 5, is
that supposed to select all items between item 2 and item 5? So would it
then look like:

_ item 1
* item 2
* item 3
* item 4
* item 5
_ item 6

Is that what you're talking about? So each time you click a checkbox it
would scan and select all items above the one they clicked until it got to
one that's already clicked?

Doug


On 27 Mar 2007 13:16:03 -0700, Clint Tredway <[EMAIL PROTECTED]> wrote:

  here is a couple of ideas. (I didnt test these, but either 'should
work')

1. have a function tied to the click event of the checkbox that adds that
index to the selectedItems of the list control

2. when submitting the info, loop through the list and check to see if any
check boxes are checked.

option 1 would mean you would need to change how your itemRenderer is
built, but it should work.

On 27 Mar 2007 13:02:37 -0700, Rick Root < [EMAIL PROTECTED]>
wrote:
>
>   Anyone else got any ideas here?
>
> On 3/27/07, Rick Root <[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
> >
>
>
>
> --
> CFMBB - Coldfusion Message Boards, Version 1.21 Now Available!
> http://www.cfmbb.org
>
>


--
http://indeegrumpee.spaces.live.com/

Reply via email to