fires before the Gantt chart is rendered on the page
gantt.attachEvent("onBeforeGanttRender", function(){ //any custom logic here });