I'm using a RadCalendar in a user control with SelectionMode set to Single, DisplayMode set to MonthView, a DayTemplateSelector set like your example of this in your demo. I also have it handling the SelectionChanged event to change the date values in the DayTemplateSelector. Basically I am using a DayTemplateSelector to change the template for the Day based on a collection of appointment dates to look either selected (the scheduled appointment date) or crossed off with an X (an appointment date to be excluded). This is supposed to be modified when the user left clicks on a Day to X it off or exclude it (through the SelectionChanged event handler). Initially I wanted to use a double-click for selection but there is no double-click event to handle and the double-click example I found in another thread here required adding a huge block of xml for the Calendar Button Style and it wouldn't work in our project due to unresolved reference errors (the sample worked but it wouldn't work in our larger real-world project).
The calendar control should only allow a single day to be selected since the SelectionMode is single but each click on a Day seems to select another Day. Why? I tried setting the SelectedDate value to null from the SelectionChanged event to hopefully clear the selections but this seems to have no effect. This seems to result in peculiar looking calendar as eventually multiple days appear to be selected as the user clicks to "exclude" scheduled appointment dates. Either I need a way to ensure only one of the days is selected or I need a way to clear the selections somehow from the SelectionChanged event handler.
Can you please offer some guidance?
Thanks!
Is there a way to clear the selected day buttons?