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

Enter key like Tab

1 Answer 40 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Koren
Top achievements
Rank 1
Koren asked on 16 Apr 2012, 06:26 PM
Is there any way to make the enter key work like tab for masked input?  Our users are used to a 10-key entry so letting them hit enter to save and navigate to the next textbox on the control would be great.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 19 Apr 2012, 07:23 AM
Hello Koren,

 You can use the PreviewKeyDown event of the MaskedInputControls like so:
previewKeyDown(...)
{
if(e.Key == Keys.Enter)
{
// your custom logic
e.handled = true;
}
}
Please let us know if this is suitable for you.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Koren
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or