Focus on a feild once startup

2 posts, 0 answers
  1. Pongsathon
    Pongsathon avatar
    1 posts
    Member since:
    May 2012

    Posted 07 Mar 2013 Link to this post

    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.
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 12 Mar 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top