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

The dropdown in the ComboBox controll does not get updated when the dataprovider gets assinged a new collection (e.g. an ArrayCollection)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.5 (Release)
    • Apache Flex 4.11.0
    • mx: ComboBox
    • None
    • Affected OS(s): Windows
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a mx:ComboBox on a panel and bind a data provider to it
      ...
      [Bindable] public var comboBoxDataArray:ArrayCollection = null;
      ...
      <mx:ComboBox labelField="name" dataProvider="

      {comboBoxDataArray}

      " width="130"></mx:ComboBox>

      2. Create 2 ArrayCollection-s of id, name pairs
      ...
      var peopleArray:ArrayCollection = new ArrayCollection(
      [

      {id:"1", name:"Bob"}

      ,

      {id:"2", name:"Fred"}

      ,

      {id:"3", name:"Petey"}

      ]);
      ...
      ...
      var animalArray:ArrayCollection = new ArrayCollection(
      [

      {id:"4", name:"Dog"}

      ,

      {id:"5", name:"Cat"}

      ,

      {id:"6", name:"Bird"}

      ,

      {id:"7", name:"Fish"}

      ]);
      ...

      3. First assign one ArrayCollection at runtime and then assign the second ArrayCollection, also at runtime. You can trigger this with a button and you can swap back and forth if you want...

      Actual Results: Using Flex SDK 3.5.0 the content of the dropdown (the list) is not updated correctly after swapping/assigning between the two array collections.

      Expected Results: In Flex SDK 3.2.0 and 3.3.0 it works correctly and the dropdown is updated.

      Workaround (if any): Downgrade the SDK to a previous version (have not tried this in 3.4.0)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: