Hi Firoz
First of all make the array collection bindable. Second in combo box tag
make dataprovider as {repeater.currentItem.eventname}.
I think it will work fine. Hope this helps.
Regards
Gagan Deep
2009/3/26 Firoz <[email protected]>
>
> I have a repeater component and having some controls inside the
> repeater. while repeating i am setting the values to the controls.
>
> The combobox value is not been set eventhough i have set it.
>
> Code is like this:
>
>
>
> var eventslist : ArrayCollection = new ArrayCollection
> ( [ {eventname:"Optout", eventtype:"S"},
>
> {eventname:"Donotoptout", eventtype:"C"}
> ] );
> var radioBtns: ArrayCollection = new ArrayCollection
> ( "Optout","Donotoptout" );
>
>
> <mx:Repeater id="repeater" dataProvider="{eventslist}">
> <mx:HBox id="hbox">
>
> <mx:ComboBox id="combobox" dataProvider="{radioBtns}"
> selectedIndex="{radioBtns.getItemAt(event.currentItem.eventname)}">
>
> <mx:RadioButton id="rb1" value="S" groupName="{'rb'+
> (rp.currentIndex+1)}" selected="{event.currentItem.eventtype == 'S' ?
> true : false}">
> <mx:RadioButton id="rb2" value="C" groupName="{'rb'+
> (rp.currentIndex+1)}" selected="{event.currentItem.eventtype == 'C' ?
> true : false}">
>
> <mx:Label x="120" y="58" text="forwardTo">
> <mx:ComboBox id="forwardToCombobox">
>
> </mx:HBox>
> </mx:Repeater>
>
> Anybody please help me
>
> Thanks in advance.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---