Web Components Hierarchical Grid Selection Overview
With the Ignite UI for Web Components Select feature in Web Components Hierarchical Grid you can easily interact with and manipulate data using simple mouse interactions. There are three selection modes available:
- Row selection
- Cell selection
- Column selection
With the IgcHierarchicalGrid.rowSelection property, you can specify:
- None
- Single
- Multiple Select
Web Components Hierarchical Grid Selection Example
The sample below demonstrates three types of cell selection behaviors in the IgcHierarchicalGrid. Use the buttons below to enable each of the available selection modes.
Web Components Hierarchical Grid Selection Options
The Ignite UI for Web Components IgcHierarchicalGrid component provides three different selection modes - Row selection, Cell selection and Column selection. By default only Multi-cell selection mode is enabled in the IgcHierarchicalGrid. In order to change/enable selection mode you can use IgcHierarchicalGrid.rowSelection, IgcHierarchicalGrid.cellSelection or Column.selectable properties.
Web Components Hierarchical Grid Row Selection
Property IgcHierarchicalGrid.rowSelection enables you to specify the following options:
-
None- Row selection would be disabled for theIgcHierarchicalGrid. -
Single- Selection of only one row within theIgcHierarchicalGridwould be available. -
Multiple- Multi-row selection would be available by using the row selectors, with a key combination like CTRL + click, or by pressing the space key once a cell is focused. -
MultipleCascade- This is a mode for cascading selection, resulting in the selection of all children in the tree below the record that the user selects with user interaction. In this mode a parent’s selection state entirely depends on the selection state of its children.
Go to Row selection topic for more information.
Web Components Hierarchical Grid Cell Selection
Property IgcHierarchicalGrid.cellSelection enables you to specify the following options:
None- Cell selection would be disabled for theIgcHierarchicalGrid.Single- Selection of only one cell within theIgcHierarchicalGridwould be available.Multiple- Currently, this is the default state of the selection in theIgcHierarchicalGrid. Multi-cell selection is available by mouse dragging over the cells, after a left button mouse clicked continuously.
Go to Cell selection topic for more information.
Web Components Hierarchical Grid Column Selection
The Column.selectable property enables you to specify the following options for each Column. The corresponding column selection will be enabled or disabled if this property is set to true or false, respectively.
This leads to the following three variations:
- Single selection - mouse click over the column cell.
- Multi column selection - holding CTRL + mouse click over the column cells.
- Range column selection - holding SHIFT + mouse click selects everything in between.
Go to Column selection topic for more information.
Known Issues and Limitations
When the grid has no IgcHierarchicalGrid.primaryKey set and remote data scenarios are enabled (when paging, sorting, filtering, scrolling trigger requests to a remote server to retrieve the data to be displayed in the grid), a row will lose the following state after a data request completes:
- Row Selection
- Row Expand/collapse
- Row Editing
- Row Pinning
API References
Additional Resources
Our community is active and always welcoming to new ideas.