TabIndex Issue

3 posts, 0 answers
  1. Ilias
    Ilias avatar
    9 posts
    Member since:
    Dec 2008

    Posted 25 Sep 2013 Link to this post

    Hi

    I am facing tab index ordering issue. See the screenshot. When tab key pressed, i want to navigate like 1,2,3.......18,19,20. I have also included a sample project code here:

    <telerik:RadGridView x:Name="radGridView" Grid.Row="1" AutoGenerateColumns="False"
                                 AutoExpandGroups="True"
                                 ColumnWidth="100">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="First Name" TextWrapping="Wrap" TabStopMode="Skip" DataMemberBinding="{Binding FirstName}" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding TabIndex}">
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBox Text="{Binding TabIndex}" TabIndex="{Binding TabIndex}"></TextBox>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding TabIndex2}">
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBox Text="{Binding TabIndex2}" TabIndex="{Binding TabIndex2}"></TextBox>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Sep 2013 Link to this post

    Hello,

    RadGridView handles the "Tab" key internally.

    You should first redefine how it is handled and Clear the commands executed when the key is pressed. The way to do so is creating your own custom keyboard provider. Please refer to our online documentation for further details. It also shows some sample code. 
     

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Ilias
    Ilias avatar
    9 posts
    Member since:
    Dec 2008

    Posted 26 Sep 2013 Link to this post

    Could you please check how to move the focus vertically here. TabIndex is not taking care here. Focus is always moving horizontally to next column cell.
    if (key == Key.Tab)
                {
    }
Back to Top