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

max for dateinput only

1 Answer 60 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 1
Iron
Iron
Veteran
Morten asked on 27 Jun 2018, 03:50 PM

If I set the max property to "new Date()" the time picker does not allow me to pick a time later than now yesterday.

If "new Date()" is 27-June-2018 17:48 I can't select 26-June-2018 18:00

Is there a work-a-round? Or can I somehow have the max only affect the datepicker and not the timepicker?

 

            $("#date-of-control").kendoDateTimePicker({
                value: new Date(),
                dateInput: true,
                format: "dd-MMM-yyyy HH:mm",
                timeFormat: "HH:mm",
                weekNumber: true,
                interval: 30,
                max: new Date()
            });

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 29 Jun 2018, 10:13 AM
Hello Morten,

I tried to replicate the behavior, however I was not able to. Please give the sample below a try and let me know how it works for you.


I would appreciate it if you can modify the sample in a way that the behavior is replicated and send it back. This will enable us to examine the issue locally and look for its cause.


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Date/Time Pickers
Asked by
Morten
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Viktor Tachev
Telerik team
Share this question
or