I think that's been reported as a bug.  Try setting the .text property
to the correct value.

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scotty Scott
Sent: Wednesday, April 04, 2007 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] editable combobox



Hi everyone,

I am having a problem with an editable combobox displaying the text that
is stored in the model.

It works the first time the view is created, however once I swap the
model object... it goes back to the prompt value always. 

<mx:ComboBox id="referredByComboBox" prompt="Select or type a value"
editable="true" dataProvider="{model.availableReferredBy}"
labelField="value" change="
model.client.referredBy=event.currentTarget.text"
text="{model.client.referredBy}" />

Note, if I have a textinput bound to {model.client.referredBy} it does
display the correct value when the model is swapped.  So I know the
value is there. 

Object Descriptions:
    model is [Bindable]
    model.availableReferredBy : ArrayCollection of a bindable object
    model.client                      : Custom bindable object
    model.client.referredBy       : String

So... should this be possible or should I create a component that has a
dropdown attached to it that only updates the textinput on itemClick?


I can provide more information if needed.

Thanks for any help

-- 
Scotty Scott
http://www.franciswscott.com <http://www.franciswscott.com>  

 

Reply via email to