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

Month view split day Morning/Afternoon

Asked by Alan
8 years ago.

Hi,
All in tilte.

Is there a way to split the day cell in two part for morning/afternoon in monthly calendar

Thanks

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

Unfortunately this is not supported at the moment.

Comment posted by Anonymous
7 years ago.

any update ?

Answer posted by Graham
7 years ago.

I have managed to do this with a slight hack. If you set the business start and end hours and the cell duration you can split the day into morning and afternoon.

BusinessBeginsHour = 9,
BusinessEndsHour = 18,
CellDuration = 240,

This will give you something that looks like:

12 | 16 | 12 | 16

but you can then use JQuery to find these values and replace them with your morning and afternoon text

$("[title='16 '] > div").text("Afternoon")

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

In the Month control (http://doc.daypilot.org/month/) splitting the cell into two parts would be possible using BeforeCellRender by inserting custom <div> elements. That would split the day cell into two parts visually but it won't affect the event placement (they will be stacked just like before).

In the Scheduler, it's possible to customize the cell size using CellDuration (as Graham suggests) and the time header using OnBeforeTimeHeaderRender:
http://forums.daypilot.org/Topic.aspx/3272/customise-cell-duration-label

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