ComboBox stealing Focus

2 posts, 0 answers
  1. Duncan
    Duncan avatar
    4 posts
    Member since:
    Feb 2009

    Posted 27 Jul 2015 Link to this post

    I am using MVVM with the Telerik RadComboBox.

    On selection of an item in my list, I open a new window. The new window gets focus, and then the focus is stolen back by the RadComboBox, and the new window dissapears behind.

    When I do the exact same thing and replace the RadCombo with standard wpf Combo, it works perfectly and does not take focus after selection.

    I have tried numerous approaches to have the new window retain focus without success. I have tried setting the new window initially to TopMost when initialised, but still the RadCombo steals the focus after all this has run.

    My new window is opened in code triggered from the setter of the property bound to the SelectedItem. So basically it appears that the selected Item setter runs, then after that completes, then it forces focus on itself.

    Is there any way to avoid this?

    I would use the standard combo, but I have a custom watermark setup and also a custom Clear selection mechanism in the Telerik control I would like to retain.




  2. Kalin
    Kalin avatar
    1359 posts

    Posted 30 Jul 2015 Link to this post

    Hi Duncan,

    I tested the explained scenario using Q2 2015 version of the controls and was not able to reproduce the issue. The recently opened Window remained focused - test it with WPF Window as well as with RadWindow. Please check the attached sample project and let me know if the scenario is the same.

    I'm looking forward to hearing from you.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top