parentId String|Number|Object

The id of the parent task.

Example - get the task parentId field

<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")
});
console.log(task.parentId); // outputs "1"
</script>
In this article
Not finding the help you need?