If I set the background color of dates in a raddatepicker the background color will show when I hover over the date but not before I do.
If I set the render mode to lightweight the background color does show upon the raddatepicker showing.
Does anyone else have this problem?
Here is the control
<telerik:RadDatePicker ID="rdpPickUpDate" runat="server" >
<Calendar OnDayRender="Calendar_OnDayRender" ></Calendar>
</telerik:RadDatePicker>
Here is the code to set the background color to red for Mondays
protected void Calendar_OnDayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
if (e.Day.Date.DayOfWeek == DayOfWeek.Monday)
{
RadCalendarDay calendarDay = new RadCalendarDay();
calendarDay.Date = e.Day.Date;
calendarDay.ItemStyle.BackColor = System.Drawing.Color.Red;
calendarDay.Repeatable = Telerik.Web.UI.Calendar.RecurringEvents.DayAndMonth;
rdpPickUpDate.Calendar.SpecialDays.Add(calendarDay);
}
}
Does anyone have any ideas