|
Here’s how I’ve handled
dynamic radios and value lists via mxml using a repeater… The dataprovider used for the repeater is
my list for the group. This is set dynamically based on the field in question. “value” is the current value
of the field stored in the DB…on each repeat it compares that to the
current value being outputted in the repeater in order to set the ‘currently
selected’ option. When an item is clicked, I capture the
current value of the option selected via event.target.data HTH, Stace <mx:Form id="fieldForm"
width="100%" height="100%"
styleName="fieldForm"> <mx:FormItem
width="100%"> <mx:Repeater
id="fieldRepeater" dataProvider="{dp}"> <mx:RadioButton
groupName="radioGroup" label="{fieldRepeater.currentItem.description}"
data=""> click="radioFieldHelper.onChange(
event )" selected="{fieldRepeater.currentItem.code
== value}" /> </mx:Repeater> </mx:FormItem> </mx:Form> From: I am trying to dynamically create radio buttons within a -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
|
- [flexcoders] Dynamic RadioButtonGroup jwaknitz
- RE: [flexcoders] Dynamic RadioButtonGroup Stacy Young

