New to Telerik UI for Blazor? Download Free 30-day trial
Grid - Keyboard Navigation
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Customize Keyboard Navigation
- Use
W A S Dfor cell navigation in addition toArrow keys - Use
O("order") for column sorting in addition toEnter - Use
Enterfor row selection instead ofSpace PageUpandPageDownare disabled and do not page the Grid
| Product Name | Unit Price | Discontinued |
|---|
| Chai | 18 | False | ||
| Chang | 19 | False | ||
| Aniseed Syrup | 10 | False | ||
| Chef Anton's Cajun Seasoning | 22 | False | ||
| Chef Anton's Gumbo Mix | 21.35 | True | ||
| Grandma's Boysenberry Spread | 25 | False | ||
| Uncle Bob's Organic Dried Pears | 30 | False | ||
| Northwoods Cranberry Sauce | 40 | False | ||
| Mishi Kobe Niku | 97 | True | ||
| Ikura | 31 | False |
- Keyboard-navigation.razor
- ProductService.cs
- ProductDto.cs
Focus
Managing Focus
The Grid component is a container that consists of the following 4 logically separated structural elements: Toolbar, Group Header, Data Grid and Pager. Each of them is part of the page tab sequence and can be navigated to using the Tab key of the keyboard.
Supported keys and user actions
ToolBar
The ToolBar implements the keyboard navigation specification for a ToolBar component. You can refer to ToolBar - Keyboard Navigation for its supported shortcuts.
Group Header
The Group header implements the keyboard navigation specification for a ChipList component. You can refer to ChipList - Keyboard Navigation for its supported shortcuts.
Data Grid
The Data Grid is a single tab stop component. Upon focusing the Data Grid, the initial focus is set to either the previously focused cell (if any), or the first data cell in the Data Grid. The key moves focus through all focusable elements and the grid does not block it - it uses roving tab index.
Pager
The Pager implements the keyboard navigation specification for a Pager component. You can refer to Pager - Keyboard Navigation for its supported shortcuts.
All Grid Cells
Grid Header Cells
Column Menu
Filter Menu
Filter Row
Grid Data Cells
All scenarios
Row Selection
Group Row
Inline Edit Row
Incell Edit Cell
Popup Editor
Command Column Cells
Checkbox Column Cells
Detail Template Master Row
Description
Keyboard navigation provides all web and app users with a fast keyboard-only navigation capability and is also part of the web accessibility features - it enables users with disabilities to fully control their website or app access through the keyboard.
By default, users can only navigate to links, buttons, and form controls with a keyboard. The navigation order in which interactive items receive keyboard focus has to be logical and intuitive. Generally, keyboard navigation logic needs to follow the visual horizontal and vertical flow of the page, for example, left to right and top to bottom, header first followed by the main and then the page navigation.
To enable the keyboard navigation of the Telerik UI for Blazor Grid set Navigable="true", as demonstrated in this demo. Optionally, customize the keyboard shortcuts with the CustomKeyboardShortcuts parameter.