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. Image for the cookie policy date

Marking special dates

Im trying to achieve this on a SfCalendar
what i want is to add a small dot, beneth certain days ( holidays for example ) that i would define in code behind.

Calendar with Dots
is there a way to mark days in calendar?
also, is there a way to remove the  ",2015" from the Header?

1 Reply

BK Bharadhi K Syncfusion Team May 13, 2015 10:33 AM UTC

Hi Ric,

Thank you for your interest in Syncfusion products.

Query 1: is there a way to mark days in calendar?

Yes. By using the CellTemplateSelector we can edit the template of each cell in the SfCalendar control. We have prepared a sample to demonstrate the same. In the sample, we have added some dates to HolidayDates collection of Holiday class and using CellTemplateSelector we have set the CellTemplate. For more information on this, please refer the documentation link given below.


Query 2: is there a way to remove the ",2015" from the Header?

We can customize the Header by using the HeaderTemplate property of SfCalendar. In the sample, we have set the HeaderTemplate and formatted the Date using CalendarHeaderFormater class.

Please find the sample in the following link.

Sample: SfCalendar_119118.zip

Could you please let us know if your requirements have been fulfilled and if you require further assistance on this.

Bharadhi K

Live Chat Icon For mobile
Up arrow icon