Custom appointment class & AppointmentCreating

2 posts, 0 answers
  1. Francisco Bernardo
    Francisco Bernardo avatar
    22 posts
    Member since:
    Jul 2009

    Posted 08 May 2012 Link to this post

    Hello I'm migrating from Scheduler to Scheduleview and I am finding some issues. I have an implementation scenario similar to this one 

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

    Is this some known issue?

  2. Yana
    Yana avatar
    5043 posts

    Posted 11 May 2012 Link to this post

    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.

    the Telerik team

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

Back to Top