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


Asked by Jø¸rn Mortensen
13 years ago.

Is it possibel to show weeknumbers in the Calendar?

ex: a good place would be the top-left-corner above the hours

Comment posted by Dan Letecky
13 years ago.

You can render your own HTML in the upper-left corner using BeforeHeaderRender event handler. Detect e.IsCorner and change e.InnerHTML.

An example from Demo/Calendar/Default.aspx.cs:

protected void DayPilotCalendar1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e)
 if (e.IsCorner)
    // NOTE: this doesn't get updated if the date is changed using Refresh callback
  e.InnerHTML = String.Format("<div style='padding:2px; text-align:center; font-weight: bold;'>{0}</div>",

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