Example of Column Resize in Javascript Gantt Chart Control


This sample demonstrates the Gantt column resizing feature. Click and drag at the right corner of each column header to resize the column.

More Details...


The Gantt columns can be resized by clicking and dragging at the right corner of columns header. Set the allowResizing property to true to enable column resizing behavior in Gantt. You can also prevent the resize of a particular column by setting columns -> allowResizing to false in columns definition In this demo, the allowResizing feature has been enabled by setting the allowResizing property to true. Task Name column can be resized between a range of minWidth (120 pixels) and maxWidth (300 pixels). The column resizing has been disabled in the Duration column Injecting Module: Gantt features are segregated into individual feature-wise modules. To use resize feature, we need to inject Resize module using the Gantt.Inject(Resize) section. More information about Column column Resizing resizing can be found in this documentation section.