I am setting selected dates from a database during the DayRender event.
When I then fire the SelectedDateChange, the selected dates I have added are no there. It will only give me the new dates that have been subsequently selected.
My Code in the DayRender event is:
foreach (DateTime dt in Session["DBBookedDays"] as ArrayList)
if ((e.Day.Date >= Convert.ToDateTime(jStartDate.Text) && e.Day.Date <= Convert.ToDateTime(jEndDate.Text)) && e.Day.Date.ToShortDateString() == dt.ToShortDateString())
e.Cell.CssClass = "rcSelected";
e.Cell.ToolTip = "Already booked in for this job";
renderedDay.IsSelected = true;
If I then loop through selected dates on the SelectedDateChange event then this selected date no longer exists.
Thanks in advance