BlackoutDates
With the Q2 SP1 2012 release we introduced an easier way to disable dates in RadCalendar control. Now all that is needed to disable certain dates in the Calendar is to bind the BlackoutDates property of the control to a collection of dates.
Disable certain dates
The purpose of the following tutorial is to show how to disable certain dates in RadCalendar.
- Add a property for the blackout dates in your view model:
- Populate the property with some sample data:
- Bind the collection to the BlackoutDates property of the Calendar control:
The end result is:
- Without BlackoutDates set:
- With BlackoutDates set: