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

Added Feature - Adding attributes to an appointment

2 Answers 181 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Neill Murphy
Top achievements
Rank 1
Neill Murphy asked on 01 May 2009, 08:38 AM
with the current appointmentMapping you can set the standard Datefrom, DateTo, Description, Location, Summary etc for the appointment, it would be a nice feature if you could add attributes to each appointment also. just for the likes off people using their own appointmentDialog's that maybe require more detailed appointment information??

Cheers.

2 Answers, 1 is accepted

Sort by
0
Accepted
Jordan
Telerik team
answered on 01 May 2009, 12:48 PM
Hello Neill Murphy,

Actually the AppointmentMappingInfo class is a convenience class.
You can add as many mappings as you want using the base class (MappingInfo) functionality like bellow:
SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource(); 
            AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo(); 
 
            SchedulerMapping emailMapping = new SchedulerMapping("Email""Email"); 
            appointmentMappingInfo.Mappings.Add(emailMapping); 
            dataSource.EventProvider.AppointmentFactory = new CustomAppointmentFactory(); 

This will work if you have a custom appointment class (and have assigned an appointment factory to create instances of it) that has an Email property.

public class CustomAppointmentFactory : IAppointmentFactory 
    { 
        #region IAppointmentFactory Members 
 
        public IEvent CreateNewAppointment() 
        { 
            return new CustomAppointment(); 
        } 
        #endregion 
    } 

I hope this helps.

Greetings,
Jordan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Neill Murphy
Top achievements
Rank 1
answered on 01 May 2009, 02:27 PM
nice one. that helps alot!

Cheers.
Tags
Scheduler and Reminder
Asked by
Neill Murphy
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Neill Murphy
Top achievements
Rank 1
Share this question
or