2 Replies Latest reply on Jul 27, 2006 8:05 AM by trycold

    Bind Radiobutton to model


      I am trying to bind value of my radiobutton to the model. I get the following erro:

      Type mismatch in assignment statement: found Object where String is required.

      It is giving error at the following line:

      <mx:Binding source="loption.selectedData" destination="myDataModel.LOption" />

      where myDataModel.LOption is defined as string. How else to get the value of loption. I have defined loption as following:

      <mx:RadioButtonGroup id="loption" />
      <mx:RadioButton groupName="loption" data="Y" label="Yes" />
      <mx:RadioButton groupName="loption" data="N" label="No" selected="true" />