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

Show only current month days in month view

Asked by Anonymous
3 years ago.

Is it possible to only show the dates for the current month in the month view? For example; if the current month is April 2021 then only show the dates Thursday, 04/01/2021 through Friday, 04/30/2021 in the calendar and omit the dates March 28 - March 31 in the first week row and omit May 1 in the last week row.

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

It's not possible to hide the boxes but you can use onBeforeCellRender event to remove the day numbers (args.cell.headerHtml) and use a different background color (args.cell.backColor).

See also:
https://api.daypilot.org/daypilot-month-onbeforecellrender/

Comment posted by Anonymous
3 years ago.

Will try that approach, thanks!

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