Select to view content in your preferred language

how to create blank row in 1st row of combobox?

968
2
03-17-2011 11:37 AM
AshleyOwens
Emerging Contributor
I would like to populate the 1st row of a combobox with a blank value. The rest of the combobox would be populated from the database. This way, upon initial load of the combobox, there are no values selected and the user is forced to choose a value.
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   If you are using an mx:Combobox then just use prompt attribute. If you are using spark  then use s:DropDownList and the prompt attribute and not the s:Combobox.
0 Kudos
AshleyOwens
Emerging Contributor
Perfect! Thanks for the response. Here is my code:
<mx:ComboBox id="cboSubSubSearch" visible="false" prompt="Select one..." />
0 Kudos