From the category archives:

RadioButton

The following example shows how you can detect when the number of RadioButton objects changes in a RadioButtonGroup in Flex by listening for the numRadioButtonsChanged event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the button label placement on a Flex RadioButton control by setting the labelPlacement property in MXML or ActionScript.

Full code after the jump.

[click to continue…]

{ 0 comments }

In a previous example, “Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex”, we saw how you can enable or disable all of the RadioButton controls in a Flex RadioButtonGroup by setting the enabled property.

The following example shows how you can detect when the enabled property changes by using the enabledChanged event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can disable keyboard navigation within a Flex RadioButton/RadioButtonGroup by extending the RadioButton class and overriding the protected keyDownHandler() method.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can detect when a RadioButton has been clicked in a FlexRadioButtonGroup by listening for the itemClick event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can loop over the RadioButton controls in a Flex RadioButtonGroup by using the numRadioButtons property and getRadioButtonAt() method.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the visibility of all of the RadioButton controls in a Flex RadioButtonGroup by setting the enabled property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the label placement on a series of RadioButton controls in a Flex RadioButtonGroup by setting the labelPlacement property.

Full code after the jump.

[click to continue…]

{ 0 comments }

Setting an opaque background on a RadioButton control in Flex

by Peter deHaan June 18, 2008 RadioButton

The following example shows how you can set an opaque background on a Flex RadioButton control by setting the opaqueBackground property. Full code after the jump.

0 comments Read the full article →

Displaying RadioButton controls using the Repeater in Flex (redux)

by Peter deHaan May 28, 2008 RadioButton

In a previous example, “Displaying RadioButton controls using the Repeater in Flex”, we saw how you could use a Repeater in MXML to display a series of Flex RadioButton controls based on a data provider. The following example shows how you can create a Repeater using ActionScript to accomplish the same thing. Full code after [...]

16 comments Read the full article →

Displaying RadioButton controls using the Repeater in Flex

by Peter deHaan May 28, 2008 RadioButton

The following example shows how you can display a series of RadioButtons using the Flex Repeater with an Array data provider. Full code after the jump.

0 comments Read the full article →

Clearing a selected RadioButton control in Flex

by Peter deHaan January 6, 2008 RadioButton

The following example shows how you can use ActionScript to clear a currently selected radio button by setting the RadioButtonGroup class’s selection property to null.

11 comments Read the full article →