The Gantt enables the user to perform selection on rows and tasks.
To enable the built-in single-row selection, apply the
kendoGanttSelectable directive to the Gantt.
The selected row can be programmatically controlled by providing a new
selectedKeys array to the directive.
Currently, only single task selection is available out of the box. The article on custom selection showcases how to implement multiple selection.
taskModelFields.idis provided, the directive uses the field
In the following example, the Gantt is set to track its tasks by the field
taskId, which is automatically picked up and used by the directive as well.
The following example demonstrates how the
title field is used for selection persistence.
itemKey property also accepts a callback, that composes a custom key from each data item.
The following example demonstrates how the entire data item could also be used as an item key.
The Gantt provides low-level hooks for implementing custom selection logic via the available