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.
    http://jsbin.com/binetupa/1/

    Cheers
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 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.

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