Thank you for contacting us.
I investigated your case and indeed setting the Disabled
properties of special day has no affect. I confirm that is an issue in our RadCalendar and have logged it in our Feedback Portal
. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - Feedback Item
Meanwhile you can use the following approaches:
1. If you want to disable the cell, you can set the Enabled
property to false
. For the purpose, you can subscribe to the ElementRender event. Please take a look at the following code snippet:
a) subsribe to the event:
.radCalendar1.ElementRender += radCalendar1_ElementRender;
b) set the Enabled
sender, RenderElementEventArgs e)
2. If you want to cancel selection of specific date, you can subscribe to SelectionChanging event:
a) subscribe to teh SelectionChanging event:
.radCalendar1.SelectionChanging += radCalendar1_SelectionChanging;
b) cancel the selection of special day
sender, SelectionEventArgs e)
(e.NewDates.Count > 0)
(item.Date == e.NewDates.Date)
You can refer to attached sample project which demonstrates you the suggested approaches.
I have also updated your Telerik Points
for reporting these cases.
Let me know if you have any other questions.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.