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

ComboBox auto selects first item on lost focus

1 Answer 23 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Byang
Top achievements
Rank 1
Byang asked on 05 May 2017, 10:34 AM

Hiya,

I have a combobox that has the following configuration:

IsEditable=true, StaysOpenOnEdit=true, SelectedValue={Binding Path=id, Mode=TwoWay}, SelectedValuePath="SomeID", DisplayMemberPath="SomeName"

The issue is that when the ComboBox is first loaded without any values, then the user keyed in some dummy values e.g. "asdf" then hit a Submit button, the first item that starts with "a" is selected. Did I miss anything on the config above?

Thanks,

Byang

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 May 2017, 07:19 AM
Hello Byang,

In order to alter this default behavior, you can set the CanAutocompleteSelectItems property of the control to False. Can you please give it a try? I s this the behavior you are aiming at?

All the best,
Stefan X1
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ComboBox
Asked by
Byang
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or