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

ComboBox stealing Focus

1 Answer 171 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Duncan
Top achievements
Rank 1
Duncan asked on 27 Jul 2015, 03:09 PM

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.

thanks

 

Duncan

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 30 Jul 2015, 06:16 AM
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.

Regards,
Kalin
Telerik
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
Tags
ComboBox
Asked by
Duncan
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or