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

Make enter key behave like tab key

4 Answers 1173 Views
Input
This is a migrated thread and some comments may be shown as answers.
Salman
Top achievements
Rank 1
Salman asked on 16 Mar 2013, 10:30 AM
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

4 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 18 Mar 2013, 06:39 PM
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
0
Salman
Top achievements
Rank 1
answered on 23 Mar 2013, 07:12 PM
Hi MasterChiefMasterChef
but i have a web form no window form
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 27 Mar 2013, 03:07 PM
It does not matter if you are using a web or window form, you are listening for a keyDown event through javascript. 
0
Vasil
Telerik team
answered on 27 Mar 2013, 03:37 PM
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.
Tags
Input
Asked by
Salman
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Salman
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or