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

Adding custom appointment to resource

1 Answer 101 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Vanja
Top achievements
Rank 1
Vanja asked on 15 Jun 2011, 04:05 PM
Hello,

I have my own custom appointment and I cant add it to resource because my appointment don't have resource property. Do I need to inherent base appointment class or ? 

Here is my code..
   public class Program : INotifyPropertyChanged
    {
        public Guid ID { get; set; }
        public DateTime Start { get; set; }
        public DateTime End { get; set; }
        public string Title { get; set; }
}


....
Program pr = new Program();
pr.Label // <-- Can't use
pr.Resources.Add(res);// <-- Can't us
pr.Links.Add(_group[i]);// <-- Can't us
....


Thank you for your support

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 17 Jun 2011, 07:46 AM
Hi Vanja,

To create a custom appointment you should either implement the IAppointment interface or  inherit from one of the classes that already implement this interface – AppointmentBase (the base implementation of the interface) or Appointment (an extended implementation).  More information about custom appointments can be found here.

Best wishes,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Vanja
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or