Columns
configurationThe 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.
columns
Arraycolumns.attributes
ObjectThe HTML attributes of the table cell (<td>) that is rendered for the column.
Quote all HTML attributes which are JavaScript keywords (for example,
class).
columns.columns
ArrayThe columns which will be rendered as child columns under this group column header.
Group columns cannot be data-bound and support a limited number of bound column settings such as title.
columns.draggable
BooleanIf set to true a draghandle will be rendered and the user could reorder the rows by dragging the row via the drag handle.
Note that the reordering operation is only a client-side operation and it does not reflect the order of any data that is bound to the server.
Default: false
columns.editable
BooleanSpecifies whether this column can be edited by the user.
Default: false
columns.editor
FunctionProvides a way to specify a custom editing UI for the column. To create the editing UI, use the container parameter.
- The editing UI has to contain an element with a set
nameHTML attribute. The attribute value has to match thefieldname.- The validation settings that are defined in the
model.fieldsconfiguration will not be applied automatically. In order for the validation to work, you (the developer) are responsible for attaching the corresponding validation attributes to the editor input. If the custom editor is a widget, to avoid visual issues, you can customize the tooltip position of the validation warning.
The jQuery object that represents the container element.
The name of the field to which the column is bound.
The format string of the column that is specified through the format option.
The model instance to which the current table row is bound.
columns.expandable
BooleanIf 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.
Default: false
columns.field
StringThe field to which the column is bound. The value of this field is displayed by the column during data binding. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.
columns.filterable
Boolean|ObjectIf set to true and if filtering is enabled for the entire Gantt, a filter menu will be displayed for this column. If set to false, the filter menu will not be displayed. By default, a filter menu is displayed for all columns when filtering is enabled through the filterable option. Can be set to a JavaScript object which represents the filter menu configuration.
Default: true
columns.format
StringThe format that is applied to the value before it is displayed. Takes the form "{0:format}" where "format" is a standard number format, custom number format, standard date format or a custom date format.
The kendo.format function is used to format the value.
columns.headerAttributes
ObjectThe HTML attributes of the table header cell (<th>) that is rendered for the column.
Quote the HTML attributes which are JavaScript keywords (for example,
class).
columns.headerTemplate
String|Functioncolumns.hidden
BooleanIf set to true, the Gantt will not display the column. By default, all columns are displayed.
Default: false
columns.menu
BooleanIf set to true, the Gantt will display the column in the column menu. By default, the column menu includes all data-bound columns, that is, the ones with a set field option.
columns.minScreenWidth
NumberThe pixel screen width below which the column will be hidden. The setting takes precedence over the hidden setting and the two cannot not be used at the same time.
columns.sortable
Boolean|ObjectIf set to true the user could sort this column by clicking its header cells. By default sorting is disabled.
Default: false
columns.template
String|FunctionThe template which renders the column content. The Gantt renders table rows (<tr>) which represent the data source items.
Each table row consists of table cells (<td>) which represent the GanttList columns. By default, the HTML-encoded value of the field is displayed in the column.
To customize the way the column displays its value, use
template.
columns.title
StringThe text that is displayed in the column header cell. If not set the field is used.
columns.width
String|NumberThe width of the column. Numeric values are treated as pixels.