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

Tab Navigation through multiple grids

1 Answer 193 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Dipti
Top achievements
Rank 1
Dipti asked on 24 Apr 2017, 12:54 PM

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 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 27 Apr 2017, 08:39 AM
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:
http://docs.telerik.com/DEVTOOLS/WPF/controls/radgridview/commands/keyboardcommandprovider

Hope this helps.

Regards,
Nasko
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.
Tags
TabControl
Asked by
Dipti
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or