fires after all tasks were removed from the Gantt chart
gantt.attachEvent("onClear", function (){ //any custom logic here });