I'm using a radformdecorator for a simple login form and for some reason I can't use the Enter key to click on the button and login. Every time I have to use the mouse but many people for convenience use the "enter" button.
How can I fix it?
Thank you!
2 Answers, 1 is accepted
0
Mira
Telerik team
answered on 28 Sep 2009, 12:37 PM
Hi Florin,
To use Enter key to click as a button, the button should be set as default button of the form.
This can be done in the code behind for example:
Button button = //find the button
form1.DefaultButton = button.UniqueID;
If you have ajaxified your page you should also use the following code: Code behind: