4 Replies Latest reply on Jun 19, 2009 6:14 AM by kevnug

    How to set RadioButtonGroup selectedValue?

    kevnug Level 1

      hey guys,


      Can anyone help me out here?


      In the below code I've tried to manually set the selectedValue to 'true' - but ultimately I need to bind to an attribute of a ValueObject

      eg. {Boolean(someVO.OnSale)} - (where OnSale is an int, 0 or 1)


      <mx:FormItem label="OnSale">

      <mx:RadioButtonGroup id="onSaleGroup" selectedValue="true" />

      <mx:RadioButton groupName="{onSaleGroup}" label="TRUE" value="true" />

      <mx:RadioButton groupName="{onSaleGroup}" label="FALSE" value="false" />



      I've tried using a few different values none of which seem to work.