Disable alpha input / validation

2 posts, 0 answers
  1. Jason
    Jason avatar
    44 posts
    Member since:
    Apr 2013

    Posted 10 Dec 2013 Link to this post

    I've read through the API and was wondering if there is a way to only allow dates to be selected from the calendar OR a real date typed in.  Currently someone could type in "Bill" or "I want to type an alphanumeric sentence"...  I'd like to prevent someone from even entering anything except for a valid date.

    I am currently validating this value after the fact and then alerting the user they have entered an invalid date, but just want to be able to cut out that step (or at least part of it) if possible.

    Thanks
    Jason
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 11 Dec 2013 Link to this post

    Hello Jason,

    In general, the DatePicker widget is designed to allow typing a string or picking a date from popup calendar. It supports multiple parse formats. Because of this functionality the user's input should not be restricted and the developer needs to validate the written text using а validator framework. Thus the user will get more descriptive information about the error and its cause.

    Regards,
    Georgi Krustev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top