I am trying to change the calendar focus month from the code behind when the selected date is not in the current focus month view. The month changes as expected with the below code but the style of the individual days in the now focused month view still display with the style "OtherMonthDayStyle". The style of the individual days is updated when the mouse hovers over each day.
Is there a solution for updating the styles immediately? I have confirmed the same issue in the following broswers:
IE 8.0.6; FF 11.0; Chrome 17.0.X
Is there a solution for updating the styles immediately? I have confirmed the same issue in the following broswers:
IE 8.0.6; FF 11.0; Chrome 17.0.X
<
Telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
/>
<
Telerik:RadCalendar
ID
=
"RadCalendar1"
runat
=
"server"
AutoPostBack
=
"true"
ShowRowHeaders
=
"false"
EnableMultiSelect
=
"false"
OnSelectionChanged
=
"RadCalendar1_SelectionChanged"
>
</
Telerik:RadCalendar
>
protected
void
RadCalendar1_SelectionChanged(
object
sender, SelectedDatesEventArgs e)
{
RadCalendar cal = (RadCalendar)sender;
if
(cal.SelectedDate.Month != cal.FocusedDate.Month)
cal.FocusedDate = cal.SelectedDate;
}