Export to ICalendar
RELATED VIDEOS |
---|
Have you had a need to build scheduler functionality into your applications? If so, then this webinar is for you, where Telerik Evangelist John Kellar shows a variety of features like iCal support, multiple view options, strong data binding support, and an out of the box appointment dialogs.(Runtime: 32:46) |
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
string exportResult = this.radScheduler1.Export(new SchedulerICalendarExporter());
Dim exportResult As String = Me.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
using (FileStream stream = File.Create("schedule.ics"))
{
this.radScheduler1.Export(stream, new SchedulerICalendarExporter());
}
Using stream As FileStream = File.Create("schedule.ics")
Me.RadScheduler1.Export(stream, New SchedulerICalendarExporter)
End Using