Tab Navigation through multiple grids

2 posts, 0 answers
  1. Dipti
    Dipti avatar
    3 posts
    Member since:
    Apr 2017

    Posted 24 Apr 2017 Link to this post

    I have four Grids in WPF form. When i press TAB-Key the focus goes to next field as expected till the end of the first grid. Similarly on pressing Tab-key, Focus shift to all field of Grid-2, Grid-3 and Grid-4.

    If i edit field-2 of Grid-2, focus is on this field and if i click on field-1 of Grid-1 and edit it, then after pressing Tab-key focus shift to next field of Grid-1, and proceeds till end of Grid-1. Here navigation works properly. But on next tab-key, the focus directly goes on field-2 of grid-2 instead of field-1. 

    Expected Result is the focus should be on field1- of grid-2.

    Is there any property of RadGridView such that only one field is focused at a time for multiple grids in a form??


    Thank you 

  2. Nasko
    Nasko avatar
    704 posts

    Posted 27 Apr 2017 Link to this post

    Hi Dipti,

    With the current implementation of the control the observed behavior is an expected one. When tab gets pressed the focus is moved either to the first focusable element or to the selected item if there is such. As the items in the grids are selected it is expected to focus to be moved to them.

    You could modify that behavior of the Tab by creating a custom KeyboardCommandProvider - currently the command that is executed on Tab is MoveNext:

    Hope this helps.

    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top