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

Scheduler - HeaderRow Start at 23 o`clock

Asked by Dennis
10 years ago.

Hi there,

is it possible to set a start and end time for the header row of the scheduler? We build a taskplaner for our machines and for that it´s neccessary to start at 23h at the day before up to 3h to the next day.

Is there any way to handle that?

Thanks for help!

Greets
Dennis

Answer posted by Dan Letecky [DayPilot]
10 years ago.

Yes, it's possible.

The StartDate must be set to the first day.

You need to use ShowNonBusiness="false" option. Then you will be able to hide individual time columns using BeforeTimeHeaderRender event handler.

Example:

protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender,
   DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
{
  if (!e.IsColGroup && e.Start.Hour >= 3 && e.Start.Hour < 23)
  {
      e.Visible = false;
  }
}

You will need to adjust it a bit because this just hides cells between 3:00 and 23:00.

See also here:

http://www.daypilot.org/scheduler-hiding-non-business-hours.html

Let me know if this is not what you are trying to do.

Comment posted by Dennis
10 years ago.

Thanks a lot!
Hadn´t seen this solution. It works fine!!!

thx
Dennis

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