SelectionSettings
16 Dec 20251 minute to read
Configures the selection behavior of the Gantt.
Properties
cellSelectionMode CellSelectionMode
The cell selection modes are flow and box. It requires the selection mode to be either cell or both.
-
Flow: Selects the range of cells between start index and end index that also includes the other cells of the selected rows. -
Box: Selects the range of cells within the start and end column indexes that includes in between cells of rows within the range. -
BoxWithBorder: Selects the range of cells as like Box mode with borders.
The supported cell selection modes are defined in the CellSelectionMode enumeration.
Defaults to Syncfusion.EJ2.Grids.CellSelectionMode.Flow
enableToggle boolean
If ‘enableToggle’ set to true, then the user can able to perform toggle for the selected row.
Defaults to false
mode SelectionMode
Defines the selection mode for the Gantt. It supports row, cell, and both (row and cell) selection modes.
-
Row: Selects entire rows. -
Cell: Selects individual cells. -
Both: Allows selection of both rows and cells.
Defaults to Syncfusion.EJ2.Grids.SelectionMode.Row
persistSelection boolean
If ‘persistSelection’ set to true, then the Gantt selection is persisted on all operations.
Defaults to false
type SelectionType
Defines the selection type for rows or cells.
-
Single: Allows only a single row or cell to be selected at a time. -
Multiple: Allows multiple rows or cells to be selected simultaneously.
Defaults to Syncfusion.EJ2.Grids.SelectionType.Single