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

Set focus to control on wizard page

2 Answers 169 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Evidor
Top achievements
Rank 1
Evidor asked on 03 Jan 2013, 11:24 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 08 Jan 2013, 10:40 AM
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.
0
Evidor
Top achievements
Rank 1
answered on 08 Jan 2013, 07:57 PM
Hi Stefan,

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


was the one i was looking for.

Thanks.
Tags
Wizard
Asked by
Evidor
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Evidor
Top achievements
Rank 1
Share this question
or