Hi, ive found a issue with setting the header background colour in BeforeHeaderRender and changing the displayed day using a callback.
When doing a call back the header background isnt updated - even if implictyly set.
EG add these to the DateSwitching.aspx demo (and assign to the calinder.
DateTime dtCalinderDate; -- glbal var
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
dtCalinderDate = DateTime.Parse("2007/1/1");
}
protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e)
{
if (e.Date.Date == dtCalinderDate.Date)
e.BackgroundColor = "#FFD9CF";
else
e.BackgroundColor = "#ffffff";
}
Dan