Hi Tracy
As I said, I need to check a few checkboxes based on the values from my
dataprovider, not all checkboxes. So, definitely, I need to refer each and
every checkbox inside the repeater.
Or simply, say I have to do this 'selected' = true/false in a eventhandler
method.
Now, how should I refer that checkbox inside a repeater??
Thanks,
Manu.
Tracy Spratt wrote:
>
> You don't need a result handler for this. Just do:
>
> <mx:CheckBox ... selected="{r1.currentItem.selected}"
>
>
>
> Tracy
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Manu Dhanda
> Sent: Tuesday, October 23, 2007 4:07 AM
> To: [email protected]
> Subject: Re[flexcoders] peater
>
>
>
>
> Hii Guyz,
>
> I have a Repeater(r1) and a checkbox(ch1) inside it.
>
> I am passing a dataprovider dynamically to the repeater and based on the
> values, I want to select a few checkboxes.
>
> In the repeat event, e.currentTarget is referring to r1.
> Now how can I refer the checkbox(ch1) inside it??
>
> So, that I could do something:
> e.currentTarget.currentItem.selected = true;
>
> Please guide me.
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Repeater-tf4675803.html#a13359221
> <http://www.nabble.com/Repeater-tf4675803.html#a13359221>
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/Repeater-tf4675803.html#a13399388
Sent from the FlexCoders mailing list archive at Nabble.com.