We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add additional attributes for your appointments ?


In SfSchedule, you can add additional attributes for your appointments. You need to create a separate class which inherits from ScheduleAppointment and include required properties in this class for adding additional attribute to appointment. In this section, additional attribute (Appointment ID) is added to an appointment.









In the CellTapped event of Schedule, you can get the appointment information along with additional attribute included in the argument of the event.




You can download the complete project from here ScheduleSample.


The following screenshot displays the output of the mentioned project.



Article ID: Published Date: Last Revised Date: Platform: Control:
6695 04/20/2016 03/22/2018 Xamarin.Forms SfSchedule
Did you find this information helpful?
Romulo Mendivil Aug 03, 2016

What is the definition of m_source and shouldn't the custom appointment go to the AppointmentCollection?

I've been trying to pass a custom appointment to the schedule, my class definition is basically the same as the example except my field is just id instead of appointment_id. 

All seems to work ok except when in ScheduleCellTapped I am getting an 'InvalidCastException' when I try to cast it to the custom type,

CustomAppointment appointment = (CustomAppointment)args.selectedAppointment; 

Not sure if I am missing something here or am I doing something wrong? 

Romulo Mendivil Aug 03, 2016
It seems I had some of my references incorrect / loading old versions and new version of different dlls, which I think was causing weird issues. 
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon