dataItem

Returns the data item to which the specified table row from the TreeList is bound

Parameters

row String|Element|jQuery

A string, DOM element or jQuery object which represents the table row. A string is treated as a jQuery selector.

Returns

kendo.data.GanttTask the task data item to which the specified table row is bound.

Example - get the task data item to which the first table row is bound

<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")
    }
  ]
});
var gantt = $("#gantt").data("kendoGantt");
var task = gantt.dataItem("tr:eq(0)");
console.log(task.title); // displays "Task1"
</script>
In this article
Not finding the help you need?