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

Change Tab with CTRL+TAB

3 Answers 501 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
4ward s.r.l.
Top achievements
Rank 1
4ward s.r.l. asked on 25 Sep 2009, 12:53 PM
With standard WPF TabControl it's possible changing tab using standard keyboard shortcut CTRL+TAB to move next and CTRL+SHIFT+TAB to move backward.

Is it possible to do the same with RadTabControl ?

Thanks,

Ivan

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 30 Sep 2009, 08:39 AM
Hello Ivan,

Unfortunately this is currently not possible. You will need to handle the keyboard input (OnKeyDown) and change the selected item manually.

This is a good suggestion and we have added this in our product backlog.

Your Telerik Points have been updated for your feedback.

Sincerely yours,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rune
Top achievements
Rank 1
answered on 18 Sep 2015, 08:05 AM
Have this been implemented yet?
0
Martin Ivanov
Telerik team
answered on 18 Sep 2015, 02:56 PM
Hi Rune,

Currently, RadTabControl supports only navigation through the left and right arrow keys of the keyboard. In order to achieve navigation with the Ctrl+Tab key combo you can write custom code that uses the KeyDown event of the tab control - as Miroslav explained. Here is an example for such approach:
this.tabControl.KeyDown += tabControl_KeyDown;
// ............................................................
void tabControl_KeyDown(object sender, KeyEventArgs e)
{           
    // ctrl + tab pressed
    if (e.Key == Key.Tab && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
    {
        this.tabControl.SelectedIndex = ++this.tabControl.SelectedIndex % this.tabControl.Items.Count;
    }
    // ctrl + tab + shift pressed
    else if (e.Key == Key.Tab && (Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == (ModifierKeys.Control | ModifierKeys.Shift))
    {
        this.tabControl.SelectedIndex = -this.tabControl.SelectedIndex % this.tabControl.Items.Count;
    }
}

Regards,
Martin
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
TabControl
Asked by
4ward s.r.l.
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Rune
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or