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

Masked Textbox with "Enter" key submit form

2 Answers 853 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Stephane
Top achievements
Rank 1
Stephane asked on 20 May 2014, 07:27 PM
I'm using the new Masked Textbox from Kendo UI for MVC and it actually works fine and binds into model without problems. One feature I didn't get automatically is the ability to press "Enter" key and submit my form.

Other textbox I use (Kendo().AutoComplete()) works fine with the "Enter" key.

@(Html.Kendo().MaskedTextBox()
.Name("PhoneNumber")
.Mask("(999) 000-0000"))

2 Answers, 1 is accepted

Sort by
0
Stephane
Top achievements
Rank 1
answered on 21 May 2014, 08:38 PM
Is there a clean way with Kendo to enable the "Enter" key on Masked Textbox or I add a function to keypress in javascript ?
0
Accepted
Georgi Krustev
Telerik team
answered on 22 May 2014, 05:46 PM
Hello Stephane,

Currently, the MaskedTextBox widget will not post the form on ENTER. We will further investigate this limitation and will try to propose an improvement in the next release of Kendo UI. For now you can use the suggested workaround in this demo:

http://trykendoui.telerik.com/@ggkrustev/eyEw

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MaskedTextBox
Asked by
Stephane
Top achievements
Rank 1
Answers by
Stephane
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or