AppointmentCalendarExporter works only with telerik implementation

2 posts, 0 answers
  1. Luc
    Luc avatar
    11 posts
    Member since:
    Feb 2013

    Posted 08 Apr 2015 Link to this post


     Suppose that I want to implement custom IAppointment, IRecurrenceRule, IExceptionOccurrence. (for database purpose for sample like explain in your documentation). I don't want inherited from telerik class but implement myself interfaces.

     If I want to add feature to export schedule in ics format, I can use your helper to do that like this :


    AppointmentCalendarExporter exporter = new AppointmentCalendarExporter();
    exporter.Export(this.Appointments.OfType<IAppointment>(), txtWriter);


    But your exporter make assumption on IExceptionOccurence and try to cast it in telerik class, and in my case it raise an exception :

    "Impossible d'effectuer un cast d'un objet de type 'CustomExceptionOccurenceModel' en type 'Telerik.Windows.Controls.ScheduleView.ExceptionOccurrence'."

    This behaviour is not really in phase with Appointment and RecurrenceRule, the helper don't suppose that IAppointment and IRecurrenceRule are telerik class. With do you have exception for IExceptionOccurrence ?



  2. Kalin
    Kalin avatar
    1283 posts

    Posted 09 Apr 2015 Link to this post

    Hello Luc,

    Thanks for bringing this to our attention. We definitely consider improving that for next official release. Meanwhile you can simply inherit from our ExceptionOccurrence class in order to avoid that issue.

    I have updated your Telerik points for your involvement.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top