• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Default Selection in ASP.NET MVC Tree Grid Control

This sample demonstrates the selection feature in Grid, which allows you to select row or simple mouse down or keyboard interaction.

DEMO
SOURCE
Selection Type
Selection Mode

Selection provides an interactive support to highlight the row or cell that you select. Selection can be done through a simple Mouse down or Keyboard interaction. To enable selection, set AllowSelection as true.

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

  • Single - Enabled by default. Allows the user to select single row/cell at a time.
  • Multiple - Allows the user to select more than one row/cell at a time.

Also, supports three modes of selection which can be set using SelectionSettings->Mode property. They are,

  • Row - Enabled by default. Enables the row selection in Tree Grid.
  • Cell - Enables the cell selection in Tree Grid.
  • Both - Enables both the row and cell selection in Tree Grid. Clicking any cell will select the both row and cell simultaneously.

The Tree Grid supports two types of cell selection mode that can be set by using the SelectionSettings->CellSelectionMode property. They are,

  • Flow - The Flow value is set by default. The range of cells are selected between the start index and end index that includes in between cells of rows.
  • Box - Range of cells are selected from the start and end column indexes that includes in between cells of rows within the range.

To perform the multi-selection, hold CTRL key and click the desired rows/cells. To select range of rows/cells, hold SHIFT key and click the rows/cells.

While using the Tree Grid in a touch device environment, there is an option for multi-selection through single tap on the row and it will show a popup with the multi-selection symbol. Tap the icon to enable multi-selection in a single tap.

More information on the selection configuration can be found in this documentation section.

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE