asyncvoidChooseEditMode(AppointmentDto appt)
{
// check if we have a recurring appointment or a member of oneif (appt.RecurrenceId != null || !string.IsNullOrEmpty(appt.RecurrenceRule))
{
int btnIndexToClick = 1;//the first button - edit instance// make it 1 for the second button - the seriesawait _jsInterop.InvokeVoidAsync("clickSchedulerPromptButton", btnIndexToClick);
}
}
This works when the user double-clicks on an event (having made sure to manage the choice between editing a series or an occurrence in the custom edit form). However, if the scheduler is configured with AllowUpdate, another path for event modification opens up, which is resizing events with the mouse. The problem is that the OnEdit event is not triggered in this case; instead, the OnUpdate event is triggered, but only after the modification choice popup appears. The SchedulerUpdateEventArgs arguments do not carry the user's choice or the targeted occurrence date. As a result, it's not possible to modify an occurrence within a series this way, even though the popup gives the user the choice. Is this a bug or an oversight?
Dimo
Telerik team
commented on 21 Oct 2024, 11:28 AM
@Emmanuel - review the recurrence-related properties of args.Item in the OnUpdate handler. Their values will show whether the user resized (modified) a particular recurrence instance, or the whole recurrence series. For example, if there are no (new) recurrence exceptions, it's the latter.