linkbutton not requiring Enter before execution

2 posts, 0 answers
  1. Shoshanah
    Shoshanah avatar
    9 posts
    Member since:
    Feb 2009

    Posted 18 Aug 2012 Link to this post

    Using a standard Linkbutton, the Alt + Access Key focuses on the button, but required the Enter key to be pressed in order to execute the command.  
    Our keyboard users really like this feature because it allows users to hear the tooltip for the button before executing, and also allows for looping through a series of buttons that share the same Access Key.

    When I converted the application to use Radbuttons, the Alt+Access Key now automatically executes the command.

    What do you recommend for requiring the Enter key before execution? 

  2. Slav
    Slav avatar
    1351 posts

    Posted 22 Aug 2012 Link to this post

    Hi Shoshanah,

    The default behavior of RadButton is to be clicked when its Access Key is used. You can try implementing the desired effect by handling the keyup JavaScript event on the page and canceling the RadButton's clicking when the Access Key is detected.

    Alternatively, you can keep the LinkButton and utilize CSS in order to modify its appearance if needed.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top