Validation

4 posts, 0 answers
  1. Simon
    Simon avatar
    14 posts
    Member since:
    Jun 2011

    Posted 18 Jul 2012 Link to this post


    Hi,

    I have 2 datepicker controls. One datepicker is used to denote the start date and the other is used to denote the end date.

    The start date should always be less than the end date. When the customer presses a button a validation message needs to be returned when the start date is greater than the end date.

    How can I implement this?

    Also, how can I add validation to ensure that the datepicker only allows customers to enter dates?

    Thanks
  2. Simon
    Simon avatar
    14 posts
    Member since:
    Jun 2011

    Posted 27 Jul 2012 Link to this post

    The following demo answers this query:

    http://demos.kendoui.com/web/datepicker/rangeselection.html



  3. Kendo UI is VS 2017 Ready
  4. Atlas
    Atlas avatar
    97 posts
    Member since:
    Jun 2009

    Posted 03 Oct 2013 Link to this post

    There is no submit button on this demo.
    It appears that this code is supposed to work when either date is changed, but changing the date does nothing.
    I added this code to my page and got the following error: Microsoft JScript runtime error: Object doesn't support property or method 'max'
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 08 Oct 2013 Link to this post

    Hello Atlas,

    I am afraid that the provided information is not sufficient enough in order to determine why you are receiving such error. Could you please confirm that you are using the latest Kendo UI version?
    Can you please provide a small but runnable jsBin sample which isolates the case?

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready