2 Replies Latest reply on Sep 12, 2009 11:57 PM by joeroth2010

    set default value for radiobuttongroup


      I'm having difficulty setting a default value for a radiobuttongroup.


      Heres the code:



      <mx:RadioButtonGroup id="radioGroup" itemClick="collabSelected(event)" selectedValue="radioButton2"/>   

          <mx:RadioButton id="radioButton2"


                  group="{radioGroup}"  x="228" y="92"/>

          <mx:RadioButton id="radioButton1"


                  group="{radioGroup}" x="175" y="92"/>



      I tried with the selectedValue property set like such, and also I tried setting the selectedValue in the init() function but neither work.  Any ideas?