Set focus to control on wizard page

3 posts, 1 answers
  1. Evidor
    Evidor avatar
    2 posts
    Member since:
    May 2009

    Posted 03 Jan 2013 Link to this post

    on my rad wizard pages there are dynamically generated radiobuttons.
    is it possible to navigate those buttons with the arrow keys and use the enter key to go to the next page?
    By default the focus is on the 'Next' button when entering a page, is this changeble?

  2. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 08 Jan 2013 Link to this post

    Hi Evidor,

    Thank you for writing.

    Once you have focused some of the radio buttons you will be able to navigate between them with the arrow keys. If you want when you press the Enter key while a radio button is focused to change the selected page, you can do that in the button's KeyDown event. 

    Attached you can find a sample application demonstrating this approach. Let me know how this works for you.

    Kind regards,
    Stefan
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Evidor
    Evidor avatar
    2 posts
    Member since:
    May 2009

    Posted 08 Jan 2013 Link to this post

    Hi Stefan,

    e.SelectedPage.ContentArea.Controls[e.SelectedPage.ContentArea.Controls.Count - 1].Focus();


    was the one i was looking for.

    Thanks.
Back to Top