Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-12803

Setting radioButtonGroup.enabled property has no effect until after creationComplete event has been called on radio buttons

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: RadioButtonGroup
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run attached bug file, or copy from below.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

      <mx:RadioButtonGroup id="rbg" enabled="false" />

      <mx:RadioButton group="

      {rbg}" label="One" />
      <mx:RadioButton group="{rbg}

      " label="Two" />
      <mx:RadioButton group="

      {rbg}" label="Three" />

      </mx:Application>


      Actual Results:
      Even though the <mx:RadioButtonGroup /> tag sets enabled to false, the radio buttons are still clickable.


      Expected Results:
      disabled radio buttons.


      Workaround (if any):
      Set the RadioButtonGroup's enabled property in the <mx:Application /> tag's creationComplete event handler, or wrap the radio buttons in a container and set the RadioButtonGRoup's enabled property in the container's creationComplete handler.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="vertical"
      creationComplete="//rbg.enabled = false;">

      <mx:RadioButtonGroup id="rbg" enabled="false" />

      <mx:VBox creationComplete="//rbg.enabled = false;">
      <mx:RadioButton group="{rbg}

      " label="One" />
      <mx:RadioButton group="

      {rbg}" label="Two" />
      <mx:RadioButton group="{rbg}

      " label="Three" />
      </mx:VBox>

      </mx:Application>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: