html5-scheduler-auto-cell-width.png

New in DayPilot Pro 7.7.

The cell width is calculated automatically to match the Scheduler width. 

  • No free space on the right side if the window is too wide.
  • No horizontal scrollbar.
  • Updated automatically on window resize.

JavaScript

Enable the auto cell width feature using cellWidthSpec property:

dp.cellWidthSpec = 'Auto';

This mode will calculate the cell width from the Scheduler width on initial load, during update and during window resizing. The calculated with will be stored in cellWidth property.

You can also specify the minimum width (in pixels) using cellWidthMin property:

dp.cellWidthMin = 20;   // default value = 1

Demo

ASP.NET WebForms

CellWidthSpec = "Auto"

Demo

ASP.NET MVC

.CellWidthSpec = Auto,

Demo