Cell stacking mode is an alternative event ordering mode.
Stacking modes (EventStackingMode property):
- Row (default)
- Cell
Row
In row stacking mode, multi-day events are supported and the row height is stretched according to number of events.
Cell
In cell stacking mode, only one-day events are supported, the row height is fixed. It's possible to set custom event ordering rules inside the day cells.
Comparison
EventStackingMode="Row" | EventStackingMode="Cell" | |
---|---|---|
Row height | Dynamic (so all events fit) | Fixed |
Scrollbar inside a day cell | No | Yes, if needed |
Multi-day events | Yes | No (end date is ignored) |
Event moving allowed | Yes | Yes |
Event resizing allowed | Yes | No |
JavaScript
<div id="dp"></div> <script type="text/javascript"> var dp = new DayPilot.Month("dp"); dp.cellMode = true; // ... dp.init(); </script>
ASP.NET WebForms
<DayPilot:DayPilotMonth runat="server" ID="DayPilotMonth1" EventStackingMode="Cell" ... />
Demo
- Cell Stacking Mode Demo (DayPilot Pro for ASP.NET WebForms)
ASP.NET MVC
MVC View
@Html.DayPilotMonth("dpm", new DayPilotMonthConfig { // ... EventStackingMode = StackingMode.Cell, // ... })