New to Kendo UI for jQuery? Start a free 30-day trial

ParentId

fields

The id of the parent task.

parentId

String|Number|Object
<script>
var parentTask = 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>
Not finding the help you need?
Contact Support