Can you set focus on the Cancel button?

2 posts, 0 answers
  1. Alex
    Alex avatar
    10 posts
    Member since:
    Apr 2011

    Posted 08 Aug 2013 Link to this post

    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.
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 13 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top