New to Kendo UI for jQuery? Start a free 30-day trial

DataBound

events

Fired when the widget is bound to data from its data source.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.sender kendo.ui.Gantt

The widget instance which fired the event.

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    }
  ],
  dataBound: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("dataBound");
  }
});
</script>
<div id="gantt"></div>
<script>
function gantt_dataBound(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("dataBound");
}
$("#gantt").kendoGantt({
 dataSource: [
    {
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
    }
  ]
});
var gantt = $("#gantt").data("kendoGantt");
gantt.bind("dataBound", gantt_dataBound);
</script>
Not finding the help you need?
Contact Support