This is a migrated thread and some comments may be shown as answers.

[Solved] Limit combobox to List

1 Answer 100 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bruce
Top achievements
Rank 1
Bruce asked on 14 Jul 2011, 06:39 PM
Is there any way with a combobox to limit the selection to the list that the control has been bound to?

I would prefer not to use the dropdownlist because of presentation and I like the type aheard feature of the drop down list.

Also, the drop down list is populated does not show a blank as the default, which I would prefer to do in this application.

Any suggestions would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Jul 2011, 07:18 AM
Hello Bruce,

 
ComboBox component does not support such functionality. In order to restrict user input, you can wire the change event and select specific item or empty input if the user did not choose item from the list.
Another option, which I think is more preferable, is to use DropDownList, but put item with empty text in the beginning of the List<SelectListItem> collection. Thus you can select it and the user could select if want.

Kind regards,
Georgi Krustev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ComboBox
Asked by
Bruce
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or