Hi Gabriele and Jason,
As of Q1 2010 we introduced some changes in the way the RadTextBox
control handles the focus. Since there were certain issues with the GotFocus
events, as well as the Focus
method, we decided to revisit the logic and improve it. The RadTextBox
control hosts a standard TextBox
control and extends its functionality by providing support for the Telerik Presentation Framework
(theming, dependency properties etc.). Since the control itself is not the focused control (but the TextBox
inside) the Focused
property will not be set to true. However, you can use the ContainsFocus
property. This property will always be true when a control inside the current control is focused. Take a look at the following code snippet:
sender, EventArgs e)
As for the Focus
method, I tried to reproduce the issue with calling it and not getting the control focused but to no avail. The Focus
method works as expected for me:
This correctly puts the focus into the control.
Jason, could you please share with me further details on your scenario so that I can make sure that I correctly try to reproduce the issue?
the Telerik team
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.