Input Mask

5 posts, 1 answers
  1. taylor
    taylor avatar
    3 posts
    Member since:
    Nov 2008

    Posted 30 Oct 2014 Link to this post

    Is there anyway to set an input mask on the Kendo date picker?
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 31 Oct 2014 Link to this post

    Hello taylor,

    In general, the DatePicker 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. Here is a demo that demonstrates how to accomplish this.

    If the mask is a must, then you can try to combine Kendo UI MaskedTextBox and Kendo UI DatePicker, 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 (use on your own responsibility).

    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. Kendo UI is VS 2017 Ready
  4. taylor
    taylor avatar
    3 posts
    Member since:
    Nov 2008

    Posted 07 Nov 2014 in reply to Georgi Krustev Link to this post

    Thanks for the advice. We will not be using an input mask. Adding parse formats is what I really needed to do.
  5. Ruben
    Ruben avatar
    1 posts
    Member since:
    Jun 2015

    Posted 30 Aug Link to this post

    On 2016 is this still true?

    If the mask is a must, then you can try to combine Kendo UI MaskedTextBox and Kendo UI DatePicker, but note that they are not intended and designed to work together and there could be undesired behaviors

  6. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 01 Sep Link to this post

    Hello,

    Combining them is still not officially supported. Nevertheless, you can check our how-to demo for details about the implementation:

    http://docs.telerik.com/kendo-ui/controls/editors/datepicker/how-to/date-masking-using-maskedtextbox

    Regards,
    Georgi Krustev
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready