Try combobox.selectedIndex = -1 (not selectedItem)

I have a requirement for a combobox with several choices in it, but it
is editable and I want the text field to start empty, i.e. not have any
of the choices in it.

I have tried the following:
1. combobox.selectedItem = -1
2. combobox.text = "";

Neither one works -- the combo box still starts with the textinput area
containing the text of the first choice of the dataprovider.

I suppose I could hack this by adding an initial choice to the
dataprovider of an empty string, but is there some other way?

Thanks in advance,

Jeremy

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to