flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "steve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-20617) ComboBox does not dispatch change event when selectedIndex is set programmatically
Date Fri, 24 Jul 2015 04:20:04 GMT

    [ https://issues.apache.org/jira/browse/FLEX-20617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639893#comment-14639893
] 

steve commented on FLEX-20617:
------------------------------

you can dispatch event manually.
eg) 
myCombobox.selectedIndex = 2;
myCombobox.dispatchEvent (new ListEvent(ListEvent.CHANGE));

> ComboBox does not dispatch change event when selectedIndex is set programmatically
> ----------------------------------------------------------------------------------
>
>                 Key: FLEX-20617
>                 URL: https://issues.apache.org/jira/browse/FLEX-20617
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: ComboBox
>    Affects Versions: Adobe Flex SDK 3.0 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Adobe JIRA
>
> Steps to reproduce:
> 1. Run the attached SWF or compile and run the attached MXML file
> 2. Click on the button labeled "set CB selectedIndex" and/or "set CB selectedItem"
> 3. Note the number of change events dispatched as indicated by the label
>  
>  Actual Results:
> Setting selectedIndex and/or selectedItem on a ComboBox does not dispatch the change
event.
> (NOTE: Setting the same properties on Spark DropDownList does dispatch the change event).
>  
>  Expected Results:
> ComboBox should dispatch the change event when selectedIndex or  selectedItem is set.
> ASDoc for ComboBox change event says:
> [change event] Dispatched when the ComboBox contents changes as a result of user interaction,
when the selectedIndex or selectedItem property changes, and, if the ComboBox control is editable,
each time a keystroke is entered in the box. 
>  
>  Workaround (if any):



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message