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

TabControl and tab key

1 Answer 164 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Matt Francis
Top achievements
Rank 1
Matt Francis asked on 26 Sep 2008, 07:42 PM
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.


1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 29 Sep 2008, 02:20 PM
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">  
        <Setter.Value> 
            <ItemsPanelTemplate> 
                <primitive:TabStripPanel x:Name="TabStripPanel" 
                                         KeyboardNavigation.TabNavigation="Once" 
                                         KeyboardNavigation.DirectionalNavigation="Local" /> 
            </ItemsPanelTemplate> 
        </Setter.Value> 
    </Setter> 
</Style> 
 

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,
Miroslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabControl
Asked by
Matt Francis
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or