Gantt Chart / Selection

Blazor Gantt Chart Example - Task Selection

Loading Syncfusion Blazor Server Demos…

This sample demonstrates how selection behavior works in the Blazor Gantt Chart. The selection feature highlights a row or cell when AllowSelection is set to true. This behavior provides immediate visual focus on the active records within the project schedule.

Selection behavior can be tailored through SelectionSettings.Type, which supports two types of selection:

  • 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.

The interaction scope is further defined by SelectionSettings.Mode, offering three alternative selection modes:

  • 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.

Additional refinements include SelectionSettings.EnableToggle for toggling a highlighted item with a subsequent click and setting the ScrollToTaskbarOnClick property to true for automatic scrolling that brings the related taskbar into view when its row is selected.

Setting the EnableRowHover property to true applies hover feedback that distinguishes the row under the pointer, aiding navigation through dense schedules.

For further details, refer to the documentation.

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