Hi there I have a radcalendar which has highlighted dates from a dictionary which contains a list of datetimes. The dates are expiry dates for courses and in the dictionary I have the names matched against the right dates. Only the last course name of the list of courses expiring for a date is being displayed so if i have "Word Course", and "Excel Course" and they both expire 31/12/13 the tooltip is coming out as "Excel Course" only instead of "Word Course, Excel Course". I'm unsure how to get this working any help would be greatly appreciated. Here is my current code:
public void RadCalendar_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
DBSecurity security = SecurityBAL.TryCastSecurity(Session);
int index = 0;
foreach (KeyValuePair<string, DateTime?> pair in expiringCourses)
{
RadCalendarDay calendarDay = new RadCalendarDay();
string name = pair.Key;
DateTime? date = pair.Value;
calendarDay.ItemStyle.BorderColor = Color.Blue;
calendarDay.Date = date.Value;
if (!calendarDay.ToolTip.Contains(name))
{
calendarDay.ToolTip += name;
calendarEvents.SpecialDays.Add(calendarDay);
}
}
}
public void RadCalendar_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
DBSecurity security = SecurityBAL.TryCastSecurity(Session);
int index = 0;
foreach (KeyValuePair<string, DateTime?> pair in expiringCourses)
{
RadCalendarDay calendarDay = new RadCalendarDay();
string name = pair.Key;
DateTime? date = pair.Value;
calendarDay.ItemStyle.BorderColor = Color.Blue;
calendarDay.Date = date.Value;
if (!calendarDay.ToolTip.Contains(name))
{
calendarDay.ToolTip += name;
calendarEvents.SpecialDays.Add(calendarDay);
}
}
}