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

Cancelling Edit on Recurrence Ocurrence removes event from UI

2 Answers 23 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Jan 2017, 03:27 PM

When I edit/cancel an single occurrence of a recurring event, the event is removed from the UI.  When I edit the series and cancel, nothing is removed (everything works as expected).

 

Scenario:

  • I have a standard scheduler with a daily recurring event (recurrence rule = "FREQ=DAILY;UNTIL=20170201T045959Z")
  • I'm working on month view
  • I double click to edit this event on January 6
  • I choose "Edit current occurrence"
  • I make no changes
  • I click cancel

Result:

  • The event occurence is removed from January 6th ONLY.  The rest of the events remain

I've searched the threads and the internet with no solutions.

  • I have a datasource.transfer configured
  • the datasource model is configured, IDs are set (ID,taskId, etc)

 

I would love to share code but company policy prevents it.  Can anyone shed any light on this or point me in the right direction??

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 06 Jan 2017, 06:15 PM

I found a work-around for now (although I'd like to get to the bottom of the root cuase).  

 

Re-init the datasource on cancel and force the UI to refresh.  I cached the datasource data on edit to eliminate hammering the server every time we cancel an event.

1.$("#scheduler").kendoScheduler({
2.        ...
3.        cancel: function (e) {
4.            this.setDataSource(calendarDataSource());
5.        }
6.        ....
7.});
0
Anton
Telerik team
answered on 10 Jan 2017, 06:26 AM
Hello David,

Thank you for reporting the problem. This false behavior is caused by a known bug in the Scheduler. It is already logged and you could track its status here.

Regards,
Anton
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Anton
Telerik team
Share this question
or