New to Telerik UI for WinForms? Start a free 30-day trial
Export to ICalendar
Updated over 1 year ago
RadScheduler allows you to export appointments in the industry-standard ICalendar format. For that purpose you need to use the Export method of the RadScheduler class. By using this method you can easily export the appointments in a given SchedulerICalendarExporter instance to a string:
Export to String
C#
string exportResult = this.radScheduler1.Export(new SchedulerICalendarExporter());
Another override of the Export method allows writing the appointment data to a Stream. The following example demonstrates how easy it is to export the appointment data contained in a RadScheduler instance to a file:
Export to Stream
C#
using (FileStream stream = File.Create("schedule.ics"))
{
this.radScheduler1.Export(stream, new SchedulerICalendarExporter());
}