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

AppointmentCalendarExporter works only with telerik implementation

1 Answer 30 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Luc
Top achievements
Rank 1
Luc asked on 08 Apr 2015, 07:45 AM

Hi,

 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 ?

Regards

Luc

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 09 Apr 2015, 01:44 PM
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.

Regards,
Kalin
Telerik
 

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

 
Tags
ScheduleView
Asked by
Luc
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or