<divid="gantt"></div><script>$("#gantt").kendoGantt({dataSource:[{id:1,orderId:0,parentId:null,title:"Task1",start:newDate("2014/6/17 9:00"),end:newDate("2014/6/17 11:00")},{id:2,orderId:1,parentId:null,title:"Task2",start:newDate("2014/6/17 12:00"),end:newDate("2014/6/17 14:00")}],navigate:function(e){/* The result can be observed in the DevTools(F12) console of the browser. */console.log(kendo.format("Navigate to {0} view", e.view.charAt(0).toUpperCase()+ e.view.slice(1)));}});</script>
<divid="gantt"></div><script>functiongantt_navigate(e){/* The result can be observed in the DevTools(F12) console of the browser. */console.log(kendo.format("Navigate to {0} view", e.view.charAt(0).toUpperCase()+ e.view.slice(1)));}$("#gantt").kendoGantt({dataSource:[{id:1,orderId:0,parentId:null,title:"Task1",start:newDate("2014/6/17 9:00"),end:newDate("2014/6/17 11:00")},{id:2,orderId:1,parentId:null,title:"Task2",start:newDate("2014/6/17 12:00"),end:newDate("2014/6/17 14:00")}]});var gantt =$("#gantt").data("kendoGantt");
gantt.bind("navigate", gantt_navigate);</script>