id String|Number|Object

The unique identifier of the task.

Example - get the id of a task

<script>
var task = new kendo.data.GanttTask({
    id: 1,
    title: "Task1",
    start: new Date("2014/6/17 9:00"),
    end: new Date("2014/6/17 11:00")
});
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(task.id); // outputs "1"
</script>
In this article