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

DayPilotCalendar - businessbeginshour and businessendshour functionality

Asked by mrplatypus (aka Dave)
7 years ago.

Hi Dan and Team,

In a previous posting:

http://forums.daypilot.org/Topic.aspx/3386/daypilotscheduler-component-set-businessbeginshour-and-busi

I asked about the daypilotscheduler control and hiding times...

I've tried applying the same functionality to the DayPilotCalendar component but this doesn't work..

My question is, is this functionality available?

Please advise.

Thanks

mrplatypus (aka Dave)

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

In the Calendar, the mechanism is slightly different:

1. If you want to hide selected days (which are displayed as columns) you need to switch to ViewType="Resources" and generate the columns manually (skipping the hidden days).

See also:
https://doc.daypilot.org/calendar/resources-view/

2. You can also hide certain hours. They all need to be in a single block (i.e. 8pm - 9am) and it will apply to all columns.

2.a You can either HeightSpec="BusinessHoursNoScroll" which will hide hours defined using BusinessBeginsHour and BusinessEndsHour.

See also HideFreeCells property for reference: https://doc.daypilot.org/calendar/hidefreecells/

2.b You can set the visible hours using DayBeginsHour and DayEndsHour properties. This option will let you specify an overnight shift (i.e. DayBeginsHour > DayEndsHour).

See also:
https://doc.daypilot.org/calendar/overnight-scheduling/

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