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

Event Cell Wrapping

Asked by Rich Barnes
6 years ago.

Wondering if it is possible to have multiple events in a specified time frame wrap to a new line.

Example:

5 Events created for 9:00am to 9:20am need to have the events wrap in 2x2xetc style vertically.

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

I'm not sure if this is what you need but you can control how concurrent events are arranged using EventArrangement property:

https://doc.daypilot.org/calendar/event-arrangement-mode/

Let me know if this doesn't help.

Comment posted by Rich Barnes
6 years ago.

We are using the EventArrangement Property with the value of SideBySide however it really doesnt help in our case. There is a chance for us to have roughly 3-6 appointments at a single time (9:00am to 9:20am) which causes all of the events to shrink in size and make the label/text not readable.

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

The Calendar control stacks the concurrent events horizontally. This can result in a situation like yours - many concurrent events will result in very narrow event boxes, making the text unreadable. This is a limitation caused by the calendar layout (time on the vertical axis and columns with limited width).

If you want to continue using the Calendar, you can take a look at the fixed column width mode:
https://doc.daypilot.org/calendar/fixed-column-width/

This mode will let you specify the column width in pixels and if you use a value high enough the events will fit in there. However, this may not work for all use cases.

I would recommend using the Scheduler control instead - it was designed to overcome these disadvantages of the Calendar control. The Scheduler displays time on the horizontal axis and concurrent events increase the row height automatically so it doesn't reduce the event box size:
https://doc.daypilot.org/scheduler/

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