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
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
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).
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