Plz provide the code , what are you doing on click of save.??
On Apr 3, 9:13 am, Firoz <[email protected]> wrote:
> Hi,
>
> I am facing problem with the repeater.
>
> I have array collection with the values 'a' and 'b' and it is
> bindable. i have passed this arraycollection to the repeater. i have a
> combobox inside the repeater. i have the data "a" and "b" in the
> combobox. i am setting the values "a" in the first combo box and "b"
> in the second combobox in the repeater itself.
>
> i have changed the selected item of first combobox from "a" to "b"
> and the second combo box values from "b" to "a" and when i click on
> save button in the page. the combobox values are reset to their
> initial values and initital values are getting saved eventhough i
> change the values.
>
> Does the repeater will re-execute when we click on the button
>
> Code will be like this:
>
> [Bindable]
> var arrayCollection : ArrayCollection =[{name:"a", value:"S"},
> {name:"b", value:"C"}];
> [Bindable]
> var collectionVals : ArrayCollection = {"a","b'}
>
> <mx:Repeater id="rp" dataProvider={arrayCollection}>
> <mx:Combobox id="combobox" dataprovider={collectionVals}
> selectedIndex={collectionVals.getItemIndex(rp.currentItem.name)}
> <mx:RadioButton x="120" y="33" label="opt" id="rbOption1"
> value="S"
> groupName="{'rb'+(rp.currentIndex+1)}"
> selected="{rp.currentItem.value == 'S' ? true : false}"/>
> <mx:RadioButton x="120" y="33" label="donotopt"
> id="rbOption2"
> value="S"
> groupName="{'rb'+(rp.currentIndex+1)}"
> selected="{rp.currentItem.value == 'C' ? true : false}"/>
>
> </mx:Repeater>
>
> Anybody please look into this and give me the solution
>
> Thank you,
> Firoz
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---