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

ComboBox DropDown not showing correct options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK 3.5 (Release)
    • None
    • mx: ComboBox
    • None
    • Affected OS(s): Windows
      Affected OS(s):
      Browser: Internet Explorer 6.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Set DataProvider of the ComboBox
      2. View the Drop down list
      3. Change the DataProvider of the ComboBox
      4. View the Drop down list

      Actual Results:
      The first data provider data is still in the list

      Expected Results:
      The new data provider data should be in the list

      Workaround (if any):

      NONE!

      ====Source code for the TestCode====
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

      <mx:Script>
      <![CDATA[
      import mx.controls.ColorPicker;
      private function changeDP():void

      { var list:Array = listArea.text.split(","); comboBox.dataProvider = list; }

      ]]
      >
      </mx:Script>

      <mx:String id="reproduceSteps">
      <![CDATA[
      Steps to reproduce:
      1. Enter a list like: a,b,c,d in the ComboBox DP Items
      2. Click 'Change the DP'
      3. Click on the combox see the list
      4. Enter another list like: e,f,g,h in the ComboBox
      5. Click 'Change the DP'
      6. Click on the combox. BUG! The list is still a,b,c,d
      ]]
      >
      </mx:String>

      <mx:VBox>

      <mx:HBox>
      <mx:Text text="Combo Box:" />
      <mx:ComboBox id="comboBox" />
      </mx:HBox>
      <mx:Spacer height="20" />
      <mx:Button label="Change the DP" click="changeDP();" />
      <mx:Text text="ComboBox DP Items:" />
      <mx:TextArea editable="true" id="listArea" />

      <mx:Text text="Items should be seperated by commas" />

      <mx:Spacer height="20"/>
      <mx:Text text="

      {reproduceSteps}

      " />

      </mx:VBox>
      </mx:Application>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: