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

How to Enable week-numbers in Scheduler?

Asked by Erik
12 years ago.

Hi,

I've been trying to figure out how to enable weeknumbers to be displayed in the java-scheduler.
As far as I can tell this is a feature of Daypilot?

Anyone have a clue?

I've tried "dps.showWeekNumbers = true;" in javascript, but that does not seem to do anything.

  • Erik
Answer posted by Dan Letecky [DayPilot]
12 years ago.

The week number will be displayed in the first header row if you use

dps.cellGroupBy = 'Week';

You can always override the onBeforeTimeHeaderRender() to customize the header HTML:

		@Override
		public void onBeforeTimeHeaderRender(BeforeTimeHeaderRenderArgs ea) throws Exception {
			ea.setInnerHTML("Week " + Week.weekNrISO8601(ea.getStart()));
		}
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.