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

Scheduler recurring event always points to "today"

2 Answers 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Elvis
Top achievements
Rank 1
Elvis asked on 07 Jan 2019, 09:09 AM

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 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 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 09 Jan 2019, 09:08 AM
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.
0
Ivan Danchev
Telerik team
answered on 10 Jan 2019, 04:51 PM
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.
Tags
Scheduler
Asked by
Elvis
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or