Example of Selection in Blazor Gantt Chart Component

Gantt Chart / Selection

The selection feature enables you to highlight a row or cell. It can be enabled by setting AllowSelection to true.

Properties

The Gantt component supports two types of selection that can be set by using the SelectionSettings.Type property. They are:

  • Single - Allows selecting only one row or cell at a time.
  • Multiple - Allows selecting multiple rows or cells. To perform the multi-selection, press and hold the Ctrl or Shift key and click the desired rows or cells.

It also supports three types of selection modes that can be set by using the SelectionSettings.Mode property. They are:

  • Row - Allows selecting only rows, and it is the default mode of selection in Gantt.
  • Cell - Allows selecting only cells.
  • Both - Allows selecting both rows and cells at the same time.

Toggle selection can be enabled by using the SelectionSettings.EnableToggle property.

The taskbar that is not visible in the viewport can be auto-scrolled to make it viewable by selecting the row and setting the ScrollToTaskbarOnClick property to true.

The EnableRowHover feature allows users to easily identify the current row by highlighting it when the mouse hovers over it. This feature can be activated by setting the EnableRowHover property to true.

More information about the Selection feature can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE