<divid="gantt"></div><script>$("#gantt").kendoGantt({dataSource:[{id:1,orderId:0,parentId:null,title:"Task1",start:newDate("2014/6/17 11:00"),end:newDate("2014/6/17 14:00")},{id:2,orderId:1,parentId:null,title:"Task2",start:newDate("2014/6/17 15:00"),end:newDate("2014/6/17 16:00")}],dependencies:[{predecessorId:1,successorId:2,type:1,id:0}],remove:function(e){if(e.task){/* The result can be observed in the DevTools(F12) console of the browser. */console.log("Removing task:", e.task.title);/* The result can be observed in the DevTools(F12) console of the browser. */console.log(kendo.format("Removing {0} related dependencies", e.dependencies.length));}else{/* The result can be observed in the DevTools(F12) console of the browser. */console.log("Removing dependency with id:", e.dependencies[0].id);}}});</script>
<divid="gantt"></div><script>functiongantt_remove(e){if(e.task){/* The result can be observed in the DevTools(F12) console of the browser. */console.log("Removing task:", e.task.title);/* The result can be observed in the DevTools(F12) console of the browser. */console.log(kendo.format("Removing {0} related dependencies", e.dependencies.length));}else{/* The result can be observed in the DevTools(F12) console of the browser. */console.log("Removing dependency with id:", e.dependencies[0].id);}}$("#gantt").kendoGantt({dataSource:[{id:1,orderId:0,parentId:null,title:"Task1",start:newDate("2014/6/17 11:00"),end:newDate("2014/6/17 14:00")},{id:2,orderId:1,parentId:null,title:"Task2",start:newDate("2014/6/17 15:00"),end:newDate("2014/6/17 16:00")}],dependencies:[{predecessorId:1,successorId:2,type:1,id:0}]});var gantt =$("#gantt").data("kendoGantt");
gantt.bind("remove", gantt_remove);</script>