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

TabOrdering

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
yoochul
Top achievements
Rank 1
yoochul asked on 13 Nov 2018, 06:34 AM

Hi,

I always want a tab of the same order.

 

<Window x:Class="WpfApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <DockPanel Grid.Row="0" >
            <TextBlock Text="AInput"/>
            <TextBox />
        </DockPanel>
        <telerik:RadGridView Grid.Row="1" ItemsSource="{Binding  AList}" />
        <DockPanel Grid.Row="2" >
            <TextBlock Text="BInput"/>
            <TextBox/>
        </DockPanel>
        <telerik:RadGridView Grid.Row="3" ItemsSource="{Binding  BList}" />
        <DockPanel Grid.Row="4" >
            <TextBlock Text="CInput"/>
            <TextBox/>
        </DockPanel>
    </Grid>
</Window>

Application Run -> Tab Key, Tab, Tab…..

 

# Current status

1. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput

2. AInput -> A RadGrid (B3) -> BInput -> B RadGrid(B3)  -> CInput            <=== Problem

3. AInput -> A RadGrid (B3) -> BInput -> B RadGrid(B3)  -> CInput            <=== Problem

....

 

#  hope
 1. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput
2. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput
 3. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput
....

 

Is this possible?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Nov 2018, 04:48 PM
Hello Yoochul Kim,

Thanks for the code snippet provided.

Speaking generally, this behavior is dependent on the Keyboard navigation integrated in the .NET Framework. What might be a possible solution would be to use the KeyboardNavigation.TabNavigation property in conjunction with a custom KeyboardCommandProvider implementation. With the latter you will be able to interfere in the tab navigation executed within the scope of the given RadGridView instance.

I hope this helps.

Regards,
Stefan
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
GridView
Asked by
yoochul
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or