You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/09/13 02:59:53 UTC
[jira] [Commented] (FLEX-27684) DropDownList selectedItem is
ignored if dataprovider changes
[ https://issues.apache.org/jira/browse/FLEX-27684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766107#comment-13766107 ]
Justin Mclean commented on FLEX-27684:
--------------------------------------
Steps 2 and 3 should be swapped about.
1. Create a DrownDownList, binding a selectedItem and an arrayCollection to the dataprovider
3. Change the dataprovider
2. Change the selectedItem
Tested and working in Apache Flex 4.10.
> DropDownList selectedItem is ignored if dataprovider changes
> ------------------------------------------------------------
>
> Key: FLEX-27684
> URL: https://issues.apache.org/jira/browse/FLEX-27684
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: DropDownList
> Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. Create a DrownDownList, binding a selectedItem and an arrayCollection to the dataprovider
> 2. Change the selectedItem (it is not in the dataprovider at this point)
> 3. Change the dataprovider, selectedItem is now in the dataprovider, but selected index is now -1
>
> Actual Results:
> Nothing is selected
>
> Expected Results:
> SelectedItem is in DataProvider, it should be selected.
>
> Workaround (if any):
> Instead of binding against selectedItem, can bind selectedIndex with selectedIndex="{dataProvider.indexOf(selectedItem)}"
--
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