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

Tab order between two panel controls

1 Answer 894 Views
Panel
This is a migrated thread and some comments may be shown as answers.
keerthivasan
Top achievements
Rank 1
keerthivasan asked on 21 Sep 2018, 04:28 PM
When I set the tab focus in the first panel, the focus is moving vertically inside the same panel, But I need it to move directly to the next panel when I click the tab button.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Sep 2018, 12:31 PM
Hello,   
 
According to MSDN, the tab order is the order in which a user moves focus from one control to another by pressing the TAB key. Each form has its own tab order. By default, the tab order is the same as the order in which you created the controls. Tab-order numbering begins with zero. When a certain container control is focused (e.g. RadPanel), pressing the Tab key will navigate to the next control within this parent container and then it will jump to the rest containers on the same level. 

If you need to monitor which control is focused when the Tab key is pressed I would suggest you to override the ProcessCmdKey method of the form and if Keys.Tab is handled, you can set the ActiveControl to the desired control. 

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
    if (keyData== Keys.Tab)
    {
        this.ActiveControl = this.radTextBox5;
    }
    return base.ProcessCmdKey(ref msg, keyData);
}

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Panel
Asked by
keerthivasan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or