Home Unanswered Active Tags New Question

Schedular Customer Day/Week Header

I purchased the professional and has been working great so far. The examples help me understand alot about how to integrate. So thank you for that!

My question is:

I have the Schedular View set to 1440 cell duration and cell group by week. How do I customize the (Week 1) (Week2) part above the days on the topon say onrender function or another way?

Thanks in advance!

Asked by Rob Gerwing 3 years ago.
Replies

Anyone..

Comment posted by Rob Gerwing 3 years ago.

Sorry for the delay...

You can customize the headers using BeforeTimeHeaderRender event.

The first row (group header) can be detected using e.IsColGroup property and the content can be set using e.InnerHTML property.

Answer posted by Dan Letecky 3 years ago.

Excellent.. You saved me today! Great product Dan..

Example for others..

protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
{
if (e.IsColGroup)
{
e.InnerHTML = "Week " + BizLogic.GetWMWeek(e.Start, true) + " ("+e.Start.ToString("MMMM yyyy") + ")"; // sets the group header
}

}

Answer posted by Rob Gerwing 3 years ago.

Rob, thanks for posting the example!

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

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