columns Array
The configuration of the Gantt columns. An array of JavaScript objects or strings. A JavaScript objects are interpreted as column configurations. Strings are interpreted as the field to which the column is bound. The Gantt will create a column for every item of the array.
If this setting is not specified the Gantt will create a single column for the task title.
Example - two columns bound to the "title" and "start" fields
<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: ["title" , "start"]
});
</script>
Related Properties
- columns.attributes
- columns.columns
- columns.draggable
- columns.editable
- columns.editor
- columns.expandable
- columns.field
- columns.filterable
- columns.filterable.ui
- columns.format
- columns.headerAttributes
- columns.headerTemplate
- columns.hidden
- columns.menu
- columns.minScreenWidth
- columns.sortable
- columns.sortable.compare
- columns.template
- columns.title
- columns.width