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

Can you set focus on the Cancel button?

1 Answer 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 08 Aug 2013, 07:45 PM
I understand that the focus is defaulted to the OK button for the Confirm dialog (Silverlight RadWindows.Confirm). I want to set focus on the second button (Cancel) but could not get to work.  I played with DefaultPromptResultValue. Is it possible? Thanks.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 13 Aug 2013, 02:57 PM
Hi Alex,

In order to default the focus on the Cancel button all you need to do is to edit the template of the RadConfirm and set the TabIndex of the Cancel button to 0, instead of 1. Please find attached a sample project which demonstrates the exact approach.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Window
Asked by
Alex
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or