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

DateTimePicker and 'All day event' in Scheduler

1 Answer 75 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 30 Apr 2014, 05:39 AM
Is there any way to imitate what checking the 'all day event' check box in the Kendo Scheduler does?
e.g. the current functionality is it changes the boxes to DatePicker instead.

I'm not sure if the best practice is to just destroy and re-create the widgets as the user checks/unchecks the box. Is there any other way, like another method that does this? I am using a custom form outside the scheduler for this.

Currently I have the following which just changes the format to use only Date, but the button for selecting time is still there.
http://jsbin.com/binetupa/1/

Cheers

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 30 Apr 2014, 11:57 AM
Hello Marc,

You can use DatePicker and DateTimePicker widgets bound to same field and hide/show them on checkbox click. I updated the demo to show the suggested approach.

Regards,
Georgi Krustev
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
Marc
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or