Hi,
I'm using 2017.3.913.45 and I've been trying to focus a NumericUpDown-Control when the user changes the current Tab of a RadTabControl.
So I've got a RadTabControl:
<
telerik:RadTabControl
...
SelectionChanged
=
"TabControl_SelectionChanged"
...>
..
<
telerik:RadTabItem
Name
=
"MyTab"
>
..
<telerik:RadNumericUpDown Name="MyNumericUpDown" ..></telerik:RadNumericUpDown>
..
</
telerik:RadTabItem
>
..
</
telerik:RadTabControl
>
And a TabControl_SelectionChanged Method:
private void TabControl_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
{
try
{
if(e.AddedItems[0] == MyTab)
{
MyNumericUpDown.Focus();
Keyboard.Focus(MyNumericUpDown);
}
}
catch
{
System.Diagnostics.Debugger.Break();
}
}
I initially only tried with MyNumericUpDown.Focus() which did not work, a colleague asked me to add the Keyboard.Focus(MyNumericUpDown) call, but that also does not work.
What's the workflow here?