[flexcoders] Re: ComboBox not updating

2009-08-20 Thread mitek17
_ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Wednesday, August 19, 2009 12:34 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: ComboBox not updating Thanks. I should add that my combobox is in use

Re: [flexcoders] Re: ComboBox not updating

2009-08-19 Thread Richard Rodseth
Thanks. I should add that my combobox is in use in an item renderer. A colleague had a similar problem which went away when he switched to a repeater. It's not clear which if any of your modifications will help my use case, but I'll try some of them. Is there a bug we can vote on besides the one

Re: [flexcoders] Re: ComboBox not updating

2009-08-19 Thread Richard Rodseth
My solution (which is not a general one) appears to be avoiding using a binding function with selectedIndex. Rather than: mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; dataProvider={this.availableOperators} selectedIndex={findSelectedIndex(this.selectedOperator,

RE: [flexcoders] Re: ComboBox not updating

2009-08-19 Thread Tracy Spratt
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: ComboBox not updating Thanks. I should add that my combobox is in use in an item renderer. A colleague had a similar problem which went away when he switched to a repeater. It's not clear which if any of your modifications will help my

[flexcoders] Re: ComboBox not updating

2009-08-18 Thread Dmitri Girski
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