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

Focus on a feild once startup

1 Answer 32 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Pongsathon
Top achievements
Rank 1
Pongsathon asked on 07 Mar 2013, 04:46 PM
I would like to set default focus once my page loaded. For example, I have User class and bind to PropertyGrid.
The User class has Name, LastName, Age. Once the page load, i would like to set focus at Age in SelectedField.

Please help on this.

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 12 Mar 2013, 10:24 AM
Hi Pongsathon,

Using the ChildrenOfType<>() extension method (Telerik.Windows.Controls) you can get a collection with your editors  inside the property grid. Having this you may manipulate the focus of the chosen editor.

Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PropertyGrid
Asked by
Pongsathon
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or