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

[Solved] How to set focus on the first control in a RowDetailsTemplate

2 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Geoff Hardy
Top achievements
Rank 1
Geoff Hardy asked on 04 Mar 2010, 09:00 PM
Our RadGridView uses a RowDetailsTemplate. When we set the SelectedItem for the RadGridView, we have a SelectionChanged event handler to make the row visible, like so:

stationGrid.ScrollIntoView(stationGrid.SelectedItem);

We would then like to put the focus in the first control in the RowDetailsTemplate. Is there an easy way to do this?

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Mar 2010, 07:09 AM
Hi,

I've made small example application (attached) to illustrate you how to achieve this.

All the best,
Vlad
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.
0
Geoff Hardy
Top achievements
Rank 1
answered on 05 Mar 2010, 06:49 PM
Great - thank you!
Tags
GridView
Asked by
Geoff Hardy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Geoff Hardy
Top achievements
Rank 1
Share this question
or