Scheduler recurring event always points to "today"

3 posts, 0 answers
  1. Elvis
    Elvis avatar
    19 posts
    Member since:
    Feb 2015

    Posted 07 Jan 2019 Link to this post

    Steps  to reproduce:

    Go to https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/editing/modify-editor-when-event-is-new

    Click "Open in Dojo"

    Click Run

    Doubleclick any free slot different from today day (e.g. click on Thursday if today is Monday)

    In the open popup select Repeat=Weekly

    Actual Result: Monday checkbox is checked by default

    Expected behavior: Thursday is checked by default because of event is created for Thursday 

     

    The same issue is reproducible when selecting other Repeat options

    In the open popup from the previous steps select Repeat=Daily

    Pay attention to "On" option value

    Actual Result: On option says 1/7/2019
    Expected behavior: 6/13/Y is selected in default option because of selected date for the event 6/13/2013

     

     

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2058 posts

    Posted 09 Jan 2019 Link to this post

    Hello Elvis,

    Thank you for reporting this behavior. We will investigate it further and get back to you with our findings.

    Regards,
    Ivan Danchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2058 posts

    Posted 10 Jan 2019 Link to this post

    Hello Elvis,

    We analyzed the scenario and the cause for the behavior in question is using a custom Scheduler editor. The recurrenceEditor in the custom editor does not automatically take the edited event's date and it needs to be passed to it the following way:
    edit: function (e) {
       var recurrenceEditor = e.container.find("[data-role=recurrenceeditor]").data("kendoRecurrenceEditor");
     
      recurrenceEditor.setOptions({
        start: new Date(e.event.start)
      });
    },
    Updated dojo example.

    Regards,
    Ivan Danchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top