parentId String|Number|Object (default: null)

The id of the parent task. Required for child tasks.

Example - create a child 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")
});
</script>
In this article
Not finding the help you need? Improve this article