Date Validation

2 posts, 0 answers
  1. Raymond
    Raymond avatar
    53 posts
    Member since:
    Aug 2007

    Posted 18 Jun 2008 Link to this post

    I set the maxdate property of the datepicker and it does not allow to select any date greater than when clicking the calendar image.

    When I enter a date greater than maxdate, it does show the text box bounded by redline.

    However, I leave the invalid date and click on save button, it does allow me to fire the event associated with the save button. How do I prevent this happenings?
  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 19 Jun 2008 Link to this post

    Hi Raymond,

    A possible approach could be to catch the OnError client event and process an appropriate actions afterwards.
    Please take a look at the example attached to this post and let me know whether it works for you.

    Best regards,
    Daniel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top