This is a migrated thread and some comments may be shown as answers.

Validation

3 Answers 140 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 18 Jul 2012, 09:32 AM

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

3 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 27 Jul 2012, 10:32 AM
The following demo answers this query:

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



0
Atlas
Top achievements
Rank 1
answered on 03 Oct 2013, 04:19 PM
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'
0
Alexander Valchev
Telerik team
answered on 08 Oct 2013, 12:58 PM
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!
Tags
Date/Time Pickers
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Atlas
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or