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
close icon

Calendar Max and Min Dates

Is it possible to block cells to a period of time defined? I.e I need to block all cells since the day after today and since 1 year before.

I've tried to use sfcalend.BlackOutDates.Add(DateTime.Now.AddYears(-1)); and it doesn't work.

Any sugestion?


3 Replies

VV Vignesh V Syncfusion Team September 13, 2013 06:35 AM UTC

Hi Acanha,

We have considered your requirment as feature and we have logged a feature report to provide 'Support to bind visible dates in SfCalendar'. We Kindly request you to visit our website periodically for feature updates.

Please let us know if you need any further assistance.


Vignesh V

AC ACanha September 13, 2013 09:37 AM UTC


Now I have a diferente error on calendar.

I did this to test blocking e period of days 

for (int i = -100; i < -1; i++)

And now I can only use scroll on the month template on the days that aren't blocked, and if I move to the previous month, it's almost impossible to scroll to a diferent month.

Any way to solve this?


VV Vignesh V Syncfusion Team September 16, 2013 12:51 PM UTC

Hi Acanha,

Sorry for delay in getting back to you.

We are able reproduce the issue 'Unable to navigate to other months while setting blackedout dates in large number'. We have logged a bug report and fix for this isue will be available in our upcoming Service Pack release.

Please let us know if you have any queries.


Vignesh V

Live Chat Icon For mobile
Up arrow icon