This is the definition we have in .aspx
<telerik:RadCalendar ID="RadCalendar2" runat="server" Font-Names="Arial,Verdana,Tahoma"
ForeColor="Black" Skin="Outlook" Style="border-color: #ececec"
EnableViewSelector="True" AutoPostBack="false">
</telerik:RadCalendar>
A function with the following lines is called on pageload:
RadCalendar2.SpecialDays.Clear();
RadCalendar2.SelectedDates.Clear();
RadCalendarDay NewDay = new RadCalendarDay(RadCalendar2);
foreach (DataRow drrow in dtALLDates.Rows)
{
NewDay =
new RadCalendarDay(RadCalendar2);
NewDay.Date =
Convert.ToDateTime(drrow["CalendarDate"]);
NewDay.ToolTip =
Convert.ToInt32(drrow["SeatsAvailable"]) > 0 ? Convert.ToInt32(drrow["SeatsAvailable"]) > 1 ? drrow["SeatsAvailable"] + " seats are available" : "1 seat is available"
:
Convert.ToInt32(drrow["InSchedule"]) == 0 ? "Session not offered or it is a holiday." : "Seats are not available.";
Boolean bselect = Convert.ToInt32(drrow["SeatsAvailable"]) > 0 && Convert.ToBoolean(drrow["AllowEdit"]) == true ? true : false;
NewDay.IsSelectable = bselect;
if (Convert.ToBoolean(drrow["IsOpted"]) == true)
{
NewDay.IsSelected =
true;
RadCalendar2.SelectedDates.Add(
new RadDate(Convert.ToDateTime(drrow["CalendarDate"].ToString())));
}
RadCalendar2.SpecialDays.Add(NewDay);
}
When we navigate from one month to another month, the highlighted dates are cleared. I tried lot of things. But nothing working. Please help me to come out of this issue.
Thanks a lot in advance.
Siva
