а

onColumnResizeEnd not triggering when using layout


#1

onColumnResizeEnd and other column resize events won’t trigger when using gantt.config.layout.

Example:
https://snippet.dhtmlx.com/70c122c99

Anyone have an idea how to make this work? I want the event to trigger when resizing “Task Name” column.


#2

Hello Srdjan,
The event doesn’t fire, but actually it works only for the first grid. Gantt uses the id parameter to attach events. When it is not specified, Gantt generates the id from the name. For the second grid, it creates a unique ID:
https://docs.dhtmlx.com/gantt/desktop__layout_config.html#requiredviewsandsettings
So, to make the events work for the second grid, you just need to add the following string to the grid configuration:

id:"grid",

Here is the updated snippet:
http://snippet.dhtmlx.com/7213320e2