This question is locked. New answers and comments are not allowed.
I have a problem with a filterable ComboBox:
When the user starts typing some text, then the ComboBox correctly displays only items containing the entered text.
If the user now selects (either by clicking or by using the down-arrow key) an item, then everything works as expected.
But if the user types some text, then leaves the ComboBox (e.g. by pressing the tab-key), no item is selected.
Is there a way to detect that situation (client-side) and automatically select the first matching item (if there are matching items) or restore the previous selection?
BTW this is how the combobox is created in the View:
Thanks,
Martin
When the user starts typing some text, then the ComboBox correctly displays only items containing the entered text.
If the user now selects (either by clicking or by using the down-arrow key) an item, then everything works as expected.
But if the user types some text, then leaves the ComboBox (e.g. by pressing the tab-key), no item is selected.
Is there a way to detect that situation (client-side) and automatically select the first matching item (if there are matching items) or restore the previous selection?
BTW this is how the combobox is created in the View:
<%= Html.Telerik().ComboBox() .Name("ComboBox") .BindTo(Model.Jobs) .SelectedIndex(Model.Jobs.FindIndex(j=>j.Selected)) .AutoFill(true) .OpenOnFocus(true) .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)) .HighlightFirstMatch(true)%>Thanks,
Martin