pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Info regarding Property Binding
Date Thu, 27 Jan 2011 15:10:11 GMT
Try setting:

enabled="${oneButton.selected}"

The curly braces are what creates the binding. If you don't include them, the value of "enabled"
is only set when the BXML document is loaded.

G

On Jan 27, 2011, at 5:30 AM, Rachita Chandra wrote:

> 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
>  
>  


Mime
View raw message