Added Feature - Adding attributes to an appointment

3 posts, 1 answers
  1. Neill Murphy
    Neill Murphy avatar
    7 posts
    Member since:
    Oct 2012

    Posted 01 May 2009 Link to this post

    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. Answer
    Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 01 May 2009 Link to this post

    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.
  3. Neill Murphy
    Neill Murphy avatar
    7 posts
    Member since:
    Oct 2012

    Posted 01 May 2009 Link to this post

    nice one. that helps alot!

    Cheers.
Back to Top