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

Should the scheduler be auto generating the RecurrenceId?

1 Answer 150 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 27 Feb 2019, 05:14 PM

Should the scheduler be auto generating the RecurrenceId when creating a recurrence exception? When following the example in the Documentation section I am setting things up as it says and everything seems to work except the RecurrenceId. When I create a recurrence exception the RecurrenceId is always set to null.

 

Here are some pictures with explanations:

 

Attached File 1: This is a view of the object when I am creating the recurrence exception

Attached File 2: This is a picture of what the scheduler looks like after the initial save. It looks fine and it looks like the recurrence exception is connected to the recurrence.

Attached File 3: This is a picture after the refresh. You can see that now what was supposed to be the recurrence exception is being treated as not associated with the recurrence at all.

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Mar 2019, 10:31 AM
Hello,

In general, the nature of the recurring series is treated as one appointment, rather than a collection of appointments. That being said, in the database should be saved a single record for the master appointment. The recurrence rule which describes the repetition pattern of the event should be preserved in a separate property which the Scheduler expects to receive on the client side as 'recurrenceRule'.

The occurences of the master appointment are generated automatically on the client by the Scheduler and depend entirely on their master event. The occurences do not have their own Id set and are associated to the master event through the recurrenceId field.

From the provided screenshot I can see that the recurrenceRule is not being set when the event is saved. Thus, when refreshing the Scheduler this leads to the observed behavior where the event is not being associated correctly.

I would suggest referring to the following Ajax Binding Documentation for ASP.NET MVC that provides a detailed list of steps on how to set up the Scheduler. The recommended approach is to use the linked example as a starting point and then decorate it further with the desired options and functionality.

Regards,
Dimitar
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
n/a
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or