Example of Keyboard Navigation in ASP.NET Core Tree Grid Control
This demo showcases the keyboard shortcuts applicable on TreeGrid and also lists out in below description, how those applicable shortcuts interacts with TreeGrid actions.
DEMO
SOURCE
Keys | Description |
F2 | Row edit |
Enter | Save request |
Delete | Delete row |
Ctrl + Shift + UpArrow | Collapse Child Grid |
Ctrl + Shift + DownArrow | Expand Child Grid |
Ctrl + UpArrow | Collapse All |
Ctrl + DownArrow | Expand All |
Ctrl + Home | First row selection |
Ctrl + End | Last row selection |
Home | First cell selection |
End | Last cell selection |
Up Arrow | Move row selection up |
Down Arrow | Move row selection down |
Right Arrow | Move Cell selection right |
Left Arrow | Move Cell selection left |
Shift + Down/Up | Multiple row Selection |
Alt + j | Focus TreeGrid element |
All the TreeGrid actions can be controlled via keyboard keys and is availed by using allowKeyboardInteraction
property which is set to true by default. The applicable key
combinations and its relative functionalities are listed below.
Keys | Description |
Ctrl + Down Arrow | ExpandAll |
Ctrl + Up Arrow | CollapseAll |
F2 | Edit |
ESC | Cancel |
Enter | Save |
Insert | Add |
Delete | Delete |
Ctrl + Home | First row selection |
Ctrl + End | Last row selection |
Home | First cell selection |
End | Last cell selection |
Up Arrow | Move row selection up |
Down Arrow | Move row selection down |
Up Arrow | Move Cell selection up |
Down Arrow | Move Cell selection down |
Right Arrow | Move Cell selection right |
Left Arrow | Move Cell selection left |
Shift + Down/Up | Multiple row Selection |
Shift + Right/Left/Down/Up | Multiple Cell Selection |
Ctrl + Shift + Up Arrow | Collapse selected parent row |
Ctrl + Shift + Down Arrow | Expand selected parent row |
Alt + j | Focus TreeGrid element |
Tab | Go to next cell for editing |
Shift + Tab | Go to previous cell for editing |
PageDown | Go to Next page |
PageUp | Go to Previous page |
Ctrl + Alt + PageUp | Go to First page |
Ctrl + Alt + PageDown | Go to Last page |
Alt + PageUp | Go to Next pager |
Alt + PageDown | Go to last pager |
More information on the TreeGrid keyboard interaction can be found in this documentation section.