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

How to set focus on GridView’s row in order to have keyboard navigation working?

1 Answer 291 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tomislav Rakic
Top achievements
Rank 1
Tomislav Rakic asked on 20 May 2010, 04:46 PM
I’m using RadGridView and GroupByExpression.
When displaying RadGridView items, I have managed to select specific group row but I don’t know how to give focus to current row so that keyboard navigation (up and down arrows) are working. Keyboard navigation only works when current row is mouse clicked.
I have tried something like this:

RadGridView.CurrentRow.VisualElement.Focus();  

but keyboard navigation still doesn’t work.

Thanks for help,
Tomislav

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 21 May 2010, 12:29 PM
Hello Tomislav Rakic,

Thank you for your question.

You can navigate through the RadGridView group header rows by using the keyboard after setting one of them to be current:

this.radGridView1.CurrentRow = this.radGridView1.Groups[0].HeaderRow;

Please, write back if you have further questions.

All the best,
Alexander
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Tomislav Rakic
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or