Blazor Tree Grid Example - Default Selection

Tree Grid / Selection / Default Selection

This sample demonstrates Tree Grid's selection feature, which allows you to select a row or cell with a simple mouse down or keyboard interaction.

Loading Syncfusion Blazor Server Demos…

1 of 30 pages (60 items)
Selection Type
Selection Mode
Cell Selection Mode

The selection feature allows you to highlight the row or cell that you select interactively. A simple mouse down or keyboard interaction can be used to make a selection. Set AllowSelection property to true to enable selection.

Tree Grid supports two types of selection which can be set using the TreeGridSelectionSettings->Type property. They are,

  • SelectionType.Single - By default, it is enabled. Allows the user to select only one row or cell at a time.
  • SelectionType.Multiple - Allows the user to select multiple rows/cells at once.

Hold down the CTRL key and click the desired rows/cells to perform a multi-selection. Hold the SHIFT key and click the rows/cells to select a range of rows/cells.

When using the Tree Grid in a touch device environment, tap on the row to bring up a popup with the multi-selection icon. Then tap the icon for multiple selection with a single click.

More information on selection 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