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

OnClick date

Thread ID:





131174 Jun 26,2017 03:37 PM UTC Jun 27,2017 12:09 PM UTC Xamarin.Forms 1
Tags: SfCalendar
Asked On June 26, 2017 03:41 PM UTC

Hi,Is there a way i could click on a date, and it will take me to a custom activity?(Something like an onclick option?).In that custom activity i want to store some information for the user on that particular date. How can i store more than just starttime, end time, and notes for appointments.Below is the code that i have:   public Calendar(string email, string password)        {            InitializeComponent();            SfCalendar calendar = new SfCalendar();            List black_dates = new List();            for (int i = 0; i < 5; i++)            {                DateTime date = new DateTime(2018, 4, 1 + i);                black_dates.Add(date);            }            calendar.BlackoutDates = black_dates;            //calendar.setShowEventsInline(true);            CalendarInlineEvent events = new CalendarInlineEvent();                                  this.Content = calendar;            this.BindingContext = new Calendar_vm(email, password);        }

Rathana Kumar Sekar [Syncfusion]
Replied On June 27, 2017 12:09 PM UTC

Hi Abbas,

Thanks for contacting Syncfusion Support.

We have attached the sample to meet your requirement ”Adding the custom event by clicking the date” and we can add own event data by inheriting the CalendarInlineEvent class of SfCalendar. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/131174/ze/CalendarTestProj1772657186 

Please let us know if you have any other query.

Rathanakumar S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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