This is an old story with ComboBox & selectedIndex. It does not count the fact that binding on SelectedIndex could come well before dataProvider property assignment, so it simply resets itself every time it has dataProvider property being updated. I have rewritten the ComboBox class to make it working properly with dataProviders.
http://mitek.id.au/blog/2008/10/28/combobox-madness-continues/ http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/ http://mitek.id.au/blog/2008/06/09/unselect-in-combobox/ Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Richard Rodseth <rrods...@...> wrote: > > The full story is too long to relate and involves the component which has > given me more grief than any other - ComboBox. I'm pretty sure I established > a while ago that there's a bug in using a ComboBox with a bound value for > selectedIndex. > > I have one whose dataprovider (and current selected index) are both highly > dynamic (changing in response to changes in another combobox). There is a > circumstance in which the displayed label does not update until you roll > over the combobox, or sometimes click on it. Is there a brute force way I > can make it update? I've tried various invalidateXXX methods. >