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

Disable alphabet input

1 Answer 263 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Ziming
Top achievements
Rank 1
Ziming asked on 21 Aug 2015, 04:30 AM

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

1 Answer, 1 is accepted

Sort by
0
Atanas Georgiev
Telerik team
answered on 24 Aug 2015, 10:45 AM
Hello,

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).

Regards,
Atanas Georgiev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Date/Time Pickers
Asked by
Ziming
Top achievements
Rank 1
Answers by
Atanas Georgiev
Telerik team
Share this question
or