onTaskResizing event is fired while user is resizing a Task item.
One parameter is passed to the handler:
You may return false from this handler to stop resizing.
var maxHours = 100; ganttChartControl.attachEvent("onTaskResizing", function(task, newHours) { // Limit maximum task length to maxHours if (newHours > maxHours) return false; });