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

Custom appointment class & AppointmentCreating

1 Answer 120 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Francisco Bernardo
Top achievements
Rank 1
Francisco Bernardo asked on 08 May 2012, 05:25 PM
Hello I'm migrating from Scheduler to Scheduleview and I am finding some issues. I have an implementation scenario similar to this one
http://www.telerik.com/community/forums/silverlight/scheduleview/appointmentcreatingeventargs-appointment-is-read-only.aspx 

..and followed the official guide 
"For the next step, it is important to set the AppointmentsSource of RadScheduleView to be of type IList<Task>, because this way the ScheduleView knows that our custom appointments should be of type Task. Let's create an ObservableCollection<Task> using the following approach:"

However, this way it is impossible to create new Appointment by double click. I've found this post describing the same behaviour and the suggested solution actually works, however this conflict with the first link's scenario, which is used when I am creating Appointments, I can't set a new Instance of my custom class to the e.Appointment, because there is no set accessor.
http://www.telerik.com/community/forums/silverlight/scheduleview/creatingappointment-event-not-working.aspx 

Is this some known issue?

Regards,
FB

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 May 2012, 01:49 PM
Hi Francisco,

You should be able to set the AppointmentsSource of the ScheduleView to an ObvservableCollection<CustomAppointmentClass> without a problem - the approach is demonstrated in our online example here. Note that your CustomAppointmentClass should inherit Appointment/AppointmentBase and should override Copy and CopyFrom methods.

Please try it and if you still experience any issues, contact us again.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Francisco Bernardo
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or