Import From ICal

Description

The sample demonstrates how to import events from iCal format.

Methods used in the sample:

  • DataStorage.Import - Imports data into the events calendar from a file of the specified format.
  • DataStorage.SaveData() - Save events data to data source or xml file depending on data storage settings.

Please, note, after import operation, you should call SaveData() method in order to make data changes persistent.

  C1EventsCalendar1.DataStorage.Import(
			Server.MapPath("pens_schedule_1011_full.ics"), 
			FileFormatEnum.iCal);
  C1EventsCalendar1.DataStorage.SaveData();
			
Documentation