search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Schedular Customer Day/Week Header

Asked by Rob Gerwing
15 years ago.

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!

Comment posted by Rob Gerwing
15 years ago.

Anyone..

Answer posted by Dan Letecky
15 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 Rob Gerwing
15 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
}

}

Comment posted by Dan Letecky
15 years ago.

Rob, thanks for posting the example!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.