Home Unanswered Active Tags New Question

CallBack Header Colour issue

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

Asked by Dan G 2 years ago.
Replies

bump...

Has this been addressed?

Comment posted by Dan G 2 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java