Hi All,

I need to enable or disable a button or textbox depending on the radio button 
selection.  Here is a small snippet of the bxml file


<RadioButton bxml:id="oneButton" buttonData="One" buttonGroup="$numbers" 
selected = "true"/>
<RadioButton bxml:id="twoButton" buttonData="Two" buttonGroup="$numbers"/>
<RadioButton bxml:id="threeButton" buttonData="Three" buttonGroup="$numbers" />

<PushButton bxml:id="selectButton" buttonData="Select"  
enabled="$oneButton.selected" />

<TextInput bxml:id="textInput1"  text="${textInput2.text}" />
<TextInput bxml:id="textInput2"  text="${textInput1.text}" 
enabled="$oneButton.selected" />



I want the select button enabled only if the RadioButton ->oneButton is 
selected . If I select another radio button ,
This select button should be disabled.

I want the property binding to happen at runtime and this works absolutely fine 
with textboxes, both the boxes are updated
Simultaneously at runtime, but this is not the case for buttons .

Please let me know where I am going wrong.

The select button once enabled is not getting disabled even if other radio 
buttons are selected.


Thanks!
Rachita


Reply via email to