fires before data is rendered on the page
gantt.attachEvent("onBeforeDataRender", function(){ ////any custom logic here }); gantt.init("gantt_here"); gantt.parse(demo_tasks);