When the AutoCellWidth mode is enabled, the cell width is calculated automatically to match the Gantt chart viewport. 

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

JavaScript

gantt.cellWidthSpec = 'Auto';

ASP.NET WebForms

CellWidthSpec = "Auto"

ASP.NET MVC

.CellWidthSpec = Auto,