Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy