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

Grid focus problem

3 Answers 239 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 13 Jun 2013, 08:50 AM
Hi, I have a problem with how the radgridview receives focus after pressing Tab in that it the grid container is the object to receive the focus and not any content in the grid. This means that if a user is tabbing around the screen they have to hit tab twice to move the focus to the selected row/cell in the grid, because one tab results in the container being focused and then another tab is required to move to the row/cell. Is there any way that the focus can be disabled on the grid container? I have tried changing the tabnavigation attached properties but these dont seem to offer the required solution. Basically if I just had a couple of grids on a screen I want the user to be able to tab between the selected rows/cells in one key press, not the two that are currently required.

Any help appreciated.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 18 Jun 2013, 12:28 PM
Hi,

You could handle the behavior on pressing the initial Tab key on a RadGridView subscribing for its GotKeyboardFocus event. Once it is raised you can set the CurrentCellInfo for the RadGridView. 

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steve
Top achievements
Rank 1
answered on 18 Jun 2013, 12:37 PM
Yes, tried that and it works when the control receives focus but it prevents you from using shift+tab to go back out of the grid, as the grid gets focus again when you leave the cell. Thought about checking which control has passed the focus to the grid but not sure if this is possible or will work.

Just thought that there may an easy way of preventing the grid container from getting focus in the first place.
0
Dimitrina
Telerik team
answered on 20 Jun 2013, 03:44 PM
Hi,

I am afraid that there is not a better option to suggest you. It will be the entire RadGridView to take the focus first. 

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Steve
Top achievements
Rank 1
Share this question
or