datepicker validator

2 posts, 1 answers
  1. David
    David avatar
    17 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2012 Link to this post

    i'm using the kendo datepicker but i want to add a custom validation rule to this.. how do i go about it? if i combine datepicker + validator, the validation is triggered on clicking the date calender button.
  2. Answer
    Iliana Nikolova
    Iliana Nikolova avatar
    2570 posts

    Posted 06 Aug 2012 Link to this post

    Hello David,

    You could set a custom validation rules via the rules property of the Kendo UI Validator. For example: 
    <div id="MyForm">
           <input id="datepicker" required />
       $(document).ready(function() {
            rules: {
              custom: function(input){

    Regarding the behavior you have observed ("the validation is triggered on clicking the date calendar button") - I tried to reproduce it, but to no avail. In order to assist you best please provide some more details or even best a small but runnable project which illustrates your scenario. Thank you in advance for your cooperation.

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