Completed
Last Updated: 28 Sep 2016 06:55 by ADMIN
ADMIN
Hristo
Created on: 12 Sep 2016 12:51
Category: Buttons
Type: Bug Report
1
FIX. RadToggleSwitch - focus is not passed to the ToggleSwitchElement if the control receives the focus from the TabKey hence the space bar is not handled one cannot toggle the value.
Workaround:
 public class MyRadToggleSwith : RadToggleSwitch
{
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadToggleSwitch).FullName;
         }
    }

    protected override void OnGotFocus(EventArgs e)
    {
        base.OnGotFocus(e);
        this.ToggleSwitchElement.Focus();
     }
}

or simply put focus to the element when the control receives the focus:
private void radToggleSwitch_GotFocus(object sender, EventArgs e)
{
	this.radToggleSwitch1.ToggleSwitchElement.Focus();
}
0 comments