Disable alphabet input

2 posts, 0 answers
  1. Ziming
    Ziming avatar
    9 posts
    Member since:
    Mar 2015

    Posted 20 Aug 2015 Link to this post

    Hi, is there a simple way to disable user entering some random text into the date time picker? I know there is kendo validator to validate the value, but my question here is how to stop user entering nonsense data.

     Thanks in advance

  2. Atanas Georgiev
    Atanas Georgiev avatar
    126 posts

    Posted 24 Aug 2015 Link to this post


    In general, the DateTimePicker widget allows different input formats, hence it does not restrict user input and the best way to validate the value is using a client validation framework

    If the mask is a must, then you can try to combine KendoUI MaskedTextBox and KendoUI DateTimePicker, but note that they are not intended and designed to work together and there could be undesired behaviors. Here is a demo that shows a proof-of-concept implementation combining DatePicker and MaskedTextBox (use on your own responsibility).

    Atanas Georgiev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top