DatePicker input valdiation

4 posts, 1 answers
  1. Anton
    Anton avatar
    4 posts
    Member since:
    Aug 2016

    Posted 15 Sep Link to this post

    Hello,

    I would like DatePicker to validate obviously invalid user input, but it doesn't happen. Why?

    I use the following code:

    <input type="text"/>
     
    <script>
        kendo.culture("en-GB");
        $('input').kendoDatePicker();
     /script>

     

    Here is it in dojo:  http://dojo.telerik.com/IHoSa

     

    What are the steps to enable validtion of user's input?

     

    Thanks

  2. Answer
    Patrick
    Admin
    Patrick avatar
    171 posts

    Posted 15 Sep Link to this post

    Hello Anton,

    Please take a look at this Kendo UI Dojo by Progress illustrating a Kendo Datepicker with validation.  

    The validator in the example checks to see if the value is a valid date.  By setting the rules,  you can set what kind of values are allowed.  If it is not valid, the message appears next to the Kendo DatePicker.  I also have a message for the required attribute.

    I would suggest going through our overview of the Kendo UI Validatorour demos, and the API Reference.

    I hope this helps!

    Regards,
    Patrick
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Anton
    Anton avatar
    4 posts
    Member since:
    Aug 2016

    Posted 16 Sep in reply to Patrick Link to this post

    Hello Patrik,

     

    Oh, ok, I hoped there is a easier way. Ok, got it. Thanks!

     

    Anton

  5. Patrick
    Admin
    Patrick avatar
    171 posts

    Posted 16 Sep Link to this post

    Hi Anton,

    Glad to help!  

    Regards,
    Patrick
    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