Delete all events?

Hi,


Is there an efficient way to delete all events in the calendar, in one call?

Thanks,
-Chris

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team August 7, 2019 05:42 AM UTC

Hi Cris, 
 
Syncfusion greetings. 
 
We can delete all events at once / individual event by using deleteEvent method. Please refer the below links. 
 
public onButtonClick(): void { 
    this.scheduleObj.deleteEvent(this.scheduleObj.eventsData as { [key: string]: Object }[]); 
    this.deleteButton.element.setAttribute('disabled', 'true'); 
  } 
 
Regards, 
Karthi 
 
 


Loader.
Up arrow icon