parentId String|Number|Object

The id of the parent task.

Example - get the parentId field of a task

<script>
var parent = new kendo.data.GanttTask({
    id: 1,
    title: "Parent",
    summary: true,
    start: new Date("2014/6/17 9:00"),
    end: new Date("2014/6/17 11:00")
});
var child = new kendo.data.GanttTask({
    id: 2,
    title: "Child",
    parentId: 1,
    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(child.parentId); // outputs "1"
</script>
In this article