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

Autocomplete open DropDown on Edit

4 Answers 191 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Thilo
Top achievements
Rank 1
Iron
Thilo asked on 24 Jan 2014, 10:11 AM

Hello !

Is it possible to automaticly open the DropDown bei Beginning of Typing a searchcriteria in a as Autocomplete configured Combobox ?

Scenario is MVVM.

OpenDropDownOnFocus is not my prefered behaviour.

 I found that StaysOpenOnEdit doesn't work and are absolete.

4 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 27 Jan 2014, 01:02 PM
Hi Thilo,

The StaysOpenOnEdit property works only if the drop down is open - it doesn't open the drop down itself. So if you need to have it open while typing you should set the OpenDropDownOnFocus property of the ComboBox to true as well. However I'm not sure if I have understood the question correctly, so please let me know if you have different requirement.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Thilo
Top achievements
Rank 1
Iron
answered on 27 Jan 2014, 02:50 PM
Hallo Kalin,
‚ÄčIn my scenario the ComboBox is editable and shows the selected Item from the ItemsSource.
The ComboBox is the First Control on an RadTabItem of a RadTabControl.
And in this Scenario with OpenDropDownOnFocus="True" The Drop Down opens when i select the RadTabItem, because the ComboBox Control got the Focus.
That is not what i wish.
The user would only view the Data and not select anyone new.
I want that only when the User Set the Focus in the ComboBox and begin to type some letters for searching the DropDown is automatically shown and list the filtered Data from ItemsSource.
When i set OpenDropDownOnFocus="False" the Drop Down is not automatically shown when i type in some letters for searching.
0
Thilo
Top achievements
Rank 1
Iron
answered on 29 Jan 2014, 08:04 AM
Hello Kalin,
see my attached Project  (rename jpg to zip)
I want only open the DropDown automatically when the user begin Typing e.g. 00
0
Kalin
Telerik team
answered on 29 Jan 2014, 11:25 AM
Hi Thilo,

What I can suggest you to do in order to avoid that behavior is to just move the first RadMaskedTextInput above the ComboBox in the xaml keeping their Grid.Row and Grid.Column positions the same. This way the focus will go into the MaskedTextInput instead of the ComboBox and the controls will remain arranged the same way.

However I would recommend you to use the AutoCompleteBox instead of the ComboBox in this case. You would be able to modify it in order to have similar appearance to the ComboBox by adding a drop down button - you can check the following example from our online XAML SDK repository which demonstrates the exact approach:
https://github.com/telerik/xaml-sdk/tree/master/AutoCompleteBox/OpenWithDropDownButton

If you also have some other requirements for the AutoCompleteBox, you can share them and we will point you the right direction in order to implement them.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ComboBox
Asked by
Thilo
Top achievements
Rank 1
Iron
Answers by
Kalin
Telerik team
Thilo
Top achievements
Rank 1
Iron
Share this question
or