Skip to content
DayPilot

Clear all the events from the calendar with javascript

Asked by Philippe
10 years ago.

Hi,

how to clear all the events from the calendar with javascript ?
Not remove the events form data base, but just clear the calendar for display.
I tried :
__________________
dpc1.events = [];
dpc1.update();
__________________
or
__________________
dpc1.events.splice(0, calendar.events.length);
dpc1.update();
__________________
but it doesn't works.
Any suggestion ?

Comment posted by Philippe
10 years ago.

I was close but I didn't saw the good property.
And without DayPilot auto-completion...
Thank you.

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.