I am looking to make changes to the flow of editing recurrences. Is it possible to change the order of when to show the dialog for selecting whether to edit the current occurrence or the series, so it is shown after the edit dialog?
I am looking to do the following: Whenever an event is edited it is always the current instance that is shown. After changes have been made in the edit dialog, the user is shown the options of whether to apply the changes to the series or to the instance. Is this possible?
Also is it possible to add an option to the "edit recurrence" dialog? I want to add the option of changing only the current instance edited and future instances.
7 Answers, 1 is accepted
I am afraid that the Scheduler widget could not be configured to show the series/instance pop-up after a recurring event has been edited. The Edit occurrence dialog could not be customized. If you need to make any changes to the editing logic, you will have to place such option on a Scheduler custom editor template. Then, upon save, you could perform your custom logic that would apply the changes to all future occurrences if that option has been selected.
When editing a single occurrence, the recurrence rule of its master event is not passed to the Event model. Nevertheless, as the edited occurrence holds a reference to its master ID, you could read the recurrence rule and pass it to the pop-up editor. To do that, you will have to handle the edit event of the Scheduler:
Here you will find a Dojo sample implementing the above suggestion.
"Then, upon save, you could perform your custom logic that would apply the changes to all future occurrences if that option has been selected."
I am using a server side data source with the transport-submit function for handling the create, update and delete requests, see code snippet:
Where in the process/flow is it best to apply the custom logic that defines the "dirty" data so that the state of data.created, data.updated and data.destroyed looks how I want it to?
Is it in the save event? Or is there another place where it is better?
Yes, the save event handler of the Scheduler is a proper place where you could perform your custom modifications to the DataSource of the widget.