а

Cannot enable resizing of Gantt grid and columns


#1

I am using the Gantt standard edition v5.1.0 and would like to enable the feature for users to resize the grid and its columns. But when I set the resize config options, the resizing widget does not appear. Can someone explain what I am doing wrong. Below is the code that reproduces the problem.


#2

Hi Mark,

At present time gantt.config.grid_resize is deprecated (maybe in future we will add it again, maybe not).
As an alternative way please use the gantt.config.layout instead and specify grid and resizer configurations with the necessary values.
Here is a demo, check how it works: snippet.dhtmlx.com/2215e31e9


#3

Thank you for the suggestion. However, when I tried it in my environment it did not work. The difference appears to be the dhtmlxgantt versions. In the code snippet you used 5.1.2 from the cdn which the license at the top of the file says can only be used on the dhtmlx.com site. I am using the standard (open source GPL v2 license) version 5.1.0 files which I downloaded using the following link dhtmlx.com/x/download/regular/dhtmlxGantt.zip.
Is there an alternative location where I should be downloading the 5.1.2 version?


#4

{ resizer: true, width: 1 } inside grid.config.layout didn’t work for me as well. Also, my code already had these properties set, but nothing changes with them.


#5

Hello,
Yes, resizing works only in Pro versions. You can download the released 5.2 version if you follow that link. But the Standard version doesn’t have resizing feature.
Please check the following snippet that demonstrates how to dynamically resize the grid in the Standard version:
snippet.dhtmlx.com/b1215d291
Using it you can create your own solution.