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
11 years ago.

Hello,

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.

Thanks,

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

You can use an empty list as a DataSource:

DayPilotCalendar1.DataSource = new ArrayList();
DayPilotCalendar1.DataBind();

This will display an empty calendar without any events.

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