Masked Textbox with "Enter" key submit form

3 posts, 1 answers
  1. Stephane
    Stephane avatar
    2 posts
    Member since:
    Apr 2014

    Posted 20 May 2014 Link to this post

    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. Stephane
    Stephane avatar
    2 posts
    Member since:
    Apr 2014

    Posted 21 May 2014 in reply to Stephane Link to this post

    Is there a clean way with Kendo to enable the "Enter" key on Masked Textbox or I add a function to keypress in javascript ?
  3. Kendo UI is VS 2017 Ready
  4. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 22 May 2014 Link to this post

    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!
     
Back to Top