I use Telerik RadControls for SL 2010 Q2
I have a custom control that contains RadDatePicker in DateOnly format and check box.
I need to change style of the specific date in dependence of checking state of the check box. Let's say, I need to paint the15th of current month in red and disable date selection if check box is checked and paint it in green and enable date selection if it is unchecked.
I use CalendarStyle and DayTemplateSelector.
- Load page for the first time.
- Check my check box and open calendar after that, the date is pained in red, that's correct.
- Uncheck the check box and open calendar again, the date is not re-painted as expected, methods of DayTemplateSelector hasn't being called.
- Change a month in the calendar and come back to the current one, the target date is re-painted in the correct color.
Please, what should I do to make the date to be re-painted correctly?