Make enter key behave like tab key

5 posts, 0 answers
  1. Salman
    Salman avatar
    30 posts
    Member since:
    Feb 2009

    Posted 16 Mar 2013 Link to this post

    Hi all member,
    I want Make enter key behave like tab key .in my form there are multi control like  RadInput and Rad grid and RadButton ,how to Make enter key behave like tab key which go to next control , not fire default button click when it not focus
    please help to me 
    thanks
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 18 Mar 2013 Link to this post

    Hi Salman,

    This functionality is possible, but requires you to listen for the keyDown event. There is a forum which answers your question located right here:
    http://www.dotnetspider.com/forum/73063-How-Make-ENTER-Key-work-like-Tab-Key.aspx

    Good luck!
    Master Chief
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Salman
    Salman avatar
    9 posts
    Member since:
    May 2012

    Posted 23 Mar 2013 Link to this post

    Hi MasterChiefMasterChef
    but i have a web form no window form
  5. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 27 Mar 2013 Link to this post

    It does not matter if you are using a web or window form, you are listening for a keyDown event through javascript. 
  6. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 27 Mar 2013 Link to this post

    Hello Salman,

    Check these threads:
    http://stackoverflow.com/questions/1009808/enter-key-press-behaves-like-a-tab-in-javascript
    http://stackoverflow.com/questions/5347857/how-do-i-convert-enter-to-tab-with-focus-change-in-ie9-it-worked-in-ie8

    I hope this helps.

    All the best,
    Vasil
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017