TabControl and tab key

2 posts, 0 answers
  1. Matt Francis
    Matt Francis avatar
    16 posts
    Member since:
    Oct 2002

    Posted 26 Sep 2008 Link to this post

    If I put a grid in the telerik tabitem control and this grid has a bunch of textboxes, labels, dropdowns (like a form) when I hit the tab key to navigate through the form fields as I enter values, the cursor doesn't change position.

    This behaviour works on the standard WPF tabcontrol.

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 29 Sep 2008 Link to this post

    Hi Matt,

    The problem comes from the default values of the TabNavigation properties, below is a style that will fix this:

    <Style TargetType="telerik:RadTabControl">  
        <Setter Property="IsTabStop" 
                Value="False" /> 
        <Setter Property="KeyboardNavigation.TabNavigation" 
                Value="Continue" /> 
        <Setter Property="ItemsPanel">  
                    <primitive:TabStripPanel x:Name="TabStripPanel" 
                                             KeyboardNavigation.DirectionalNavigation="Local" /> 

    I have also attached a project where the fix is implemented.

    You will be able to remove this style with the next release of the WPF controls.

    Your points have been updated as per our EAP Program.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top