columns.expandable Boolean
(default: false)
If set to true
, the column will show the icons that are used for expanding and collapsing child rows. By default, the "title" column of the Gantt is expandable.
Example - making the second column expandable
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [
{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
},
{
id: 2,
orderId: 1,
parentId: null,
title: "Task2",
start: new Date("2014/6/17 12:00"),
end: new Date("2014/6/17 14:00")
}
],
dependencies: [
{
predecessorId: 1,
successorId: 2,
type: 1
}
],
columns: [{
field: "id",
expandable: true
}, "title" , "start", "end"]
});
</script>