Change Tab with CTRL+TAB

4 posts, 0 answers
  1. 4ward s.r.l.
    4ward s.r.l. avatar
    25 posts
    Member since:
    Jun 2007

    Posted 25 Sep 2009 Link to this post

    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 ?


  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 30 Sep 2009 Link to this post

    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,
    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.
  3. Rune
    Rune avatar
    1 posts
    Member since:
    Jun 2015

    Posted 18 Sep 2015 in reply to Miroslav Link to this post

    Have this been implemented yet?
  4. Martin Ivanov
    Martin Ivanov avatar
    1402 posts

    Posted 18 Sep 2015 Link to this post

    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;

    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
Back to Top