DateTimePicker and 'All day event' in Scheduler

2 posts, 0 answers
  1. Marc
    Marc avatar
    1 posts
    Member since:
    Apr 2014

    Posted 30 Apr 2014 Link to this post

    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.

  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 30 Apr 2014 Link to this post

    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.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top