[
https://issues.apache.org/jira/browse/FLEX-24159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-24159.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.11.0
Fixed by fix to FLEX-25906
> The dropdown in the ComboBox controll does not get updated when the
> dataprovider gets assinged a new collection (e.g. an ArrayCollection)
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FLEX-24159
> URL: https://issues.apache.org/jira/browse/FLEX-24159
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: ComboBox
> Affects Versions: Adobe Flex SDK 3.5 (Release)
> Environment: Affected OS(s): Windows
> Browser: Internet Explorer 7.x
> Language Found: English
> Reporter: Adobe JIRA
> Fix For: Apache Flex 4.11.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira