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

How to Provide Default focus to the top of the RadComboBoxItems

1 Answer 39 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vinnarasi
Top achievements
Rank 1
Vinnarasi asked on 01 Oct 2013, 01:00 PM
Hi,
        When I Type into the Radcombobox, and  When the typed item is not  present in the RadComboBoxItems I need to have default focus  to the top of the RadComboBoxItems list.
       
         Any Solution for this?

       

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 04 Oct 2013, 06:29 AM
Hello,

As a solution I can suggest you to bind the SelectedItem property of the ComboBox to a property in your ViewModel this then in the setter of your property you can check whether the new value is null and if it is you can set it to the first item of the collection. You can also set the IsFilteringEnabled in order to always have the text of the SelectedItem visible. Please check the attached project for the exact approach.

Hope this will work for you.

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
Vinnarasi
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or