Import multiple ICS calendar files

4 posts, 0 answers
  1. Gary
    Gary avatar
    4 posts
    Member since:
    Apr 2013

    Posted 26 Dec 2018 Link to this post

    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.

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3217 posts

    Posted 27 Dec 2018 Link to this post

    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.
  3. Gary
    Gary avatar
    4 posts
    Member since:
    Apr 2013

    Posted 27 Dec 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

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

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3217 posts

    Posted 28 Dec 2018 Link to this post

    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.
Back to Top