search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How do I empty a DayPilot calendar please?

Asked by Alan
8 years ago.


Can you please tell me how to empty a DayPilot Lite calendar?

I'm displaying the calendar in a ModalPopupExtender window when the user presses a button. I build the DataTable by hand, populate it and bind it to the DayPilot calendar. When the user presses a "Close" button on the ModalPopupExtender, I want to empty the calendar before closing the form.


  • Alan.
Answer posted by Dan Letecky [DayPilot]
8 years ago.

You can use an empty list as a DataSource:

DayPilotCalendar1.DataSource = new ArrayList();

This will display an empty calendar without any events.

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