This is a migrated thread and some comments may be shown as answers.

Import multiple ICS calendar files

3 Answers 119 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 26 Dec 2018, 02:24 PM

I'm not sure the exact approach, but I'm looking to design a calendar where it imports multiple iCal files and displays schedule in a single calendar.  Each ics file would represent a different entity, and I would want to use custom colors to block events for each.

 

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Dec 2018, 09:50 AM
Hello, Gary, 

RadScheduler allows you to import appointments from the industry-standard ICalendar format. Thus, you can import as many files as you wish. The following help article demonstrates how to import the data: https://docs.telerik.com/devtools/winforms/controls/scheduler/importing-and-exporting-appointments/import-from-icalendar

In order to format the appointments, it is suitable to use the AppointmentFormatting event: https://docs.telerik.com/devtools/winforms/controls/scheduler/appearance/formatting-appointments

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Gary
Top achievements
Rank 1
answered on 27 Dec 2018, 02:54 PM

I had followed these examples earlier, and have successfully implemented a single calendar.  My question was geared more towards multiple calendar files. 

There doesn't seem to be an indicator when importing to identify the source of the imported calendar.  Perhaps I set the location on all the inbound appointments?. 

Also is it assumed that you simply import additional calendars? or do I read in an iCalendar object, extract each appointment, and add to scheduler?  

My initial thought was a List<Resources> where each Resource had a Calendar.  The calendar would display the schedule for all resources(color coded).

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 Dec 2018, 09:49 AM
Hello, Gary, 

When you import a single ICal file, it adds the respective appointments without clearing the already existing ones. However, you can't distinguish how two appointments are created or from which file they have been imported. The import functionality is available on RadScheduler level, not per each resource. Hence, you can't import a specific ICal file for a certain resource. 

I can suggest you consider import/export functionality from a custom file. Thus, you can implement the exact behavior that you want. In addition, you have full control on how to parse the passed data and create the respective appointments. The following help article demonstrates a sample approach. feel free to extend the example and achieve the requirement that you have: https://docs.telerik.com/devtools/winforms/controls/scheduler/importing-and-exporting-appointments/export-to-a-custom-file 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Gary
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Gary
Top achievements
Rank 1
Share this question
or