onGridResize

fires when the user is dragging the grid's border to resize the grid

void onGridResize(number old_width,number new_width);
old_widthnumberthe initial grid's width
new_widthnumberthe new grid's width

Available only in PRO Edition

Example

gantt.attachEvent("onGridResize", function(old_width, new_width){
    if(!message){
        message = gantt.message({expire:-1,
        text:"Grid is now <b id='width_placeholder'></b><b>px</b> width"});
    }
    document.getElementById("width_placeholder").innerText = new_width;
});

Related samples

Details

This functionality is available in the PRO edition only.

See also
Back to top