How to Provide Default focus to the top of the RadComboBoxItems

2 posts, 0 answers
  1. Vinnarasi
    Vinnarasi avatar
    14 posts
    Member since:
    Aug 2013

    Posted 01 Oct 2013 Link to this post

    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?

           

  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 04 Oct 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top