Force edit series when editing an event

I'm using the schedule component in angular and would like to change the way editing an event in a series works. Currently, if you double click an event which is in a series, you receive a popup asking how to edit the event:

Image_1597_1741127066553

However, I'd like to hide this completely and always force the user to edit the series. In our application, editing individual events of a series doesn't make any sense.

If the event is not​ in a series it should open up as normal.

Is this possible?


3 Replies

SR Swathi Ravi Syncfusion Team March 6, 2025 12:49 PM UTC

Hi Dave Stewart,

 

Thank you for reaching out to us!

You can directly open the editor window while editing and deleting the recurrence events by using the Scheduler's openEditor method in the popupOpen event, as demonstrated in the below share snippets.

<ejs-schedule #scheduleObj (popupOpen)="popupOpen($event)">

 

public popupOpen(args: PopupOpenEventArgs) {

    if (args.type == 'RecurrenceAlert') {

      args.cancel = true;

      if (this.scheduleObj.currentAction == 'EditOccurrence') {

        this.scheduleObj.openEditor(args.data, 'EditSeries');

      }

      if (this.scheduleObj.currentAction == 'Delete') {

        this.scheduleObj.deleteEvent(args.data, 'DeleteSeries');

      }

    }

  }

 

Regards,

Swathi



DS Dave Stewart replied to Swathi Ravi March 7, 2025 08:06 AM UTC

Fantastic, that works! Thank you so much



AK Ashokkumar Karuppasamy Syncfusion Team March 10, 2025 04:27 AM UTC

Hi Dave Stewart

We are glad to know that the given solution works. Let us know if you need any further assistance.

Regards,
Ashok

Loader.
Up arrow icon