New to Telerik UI for Blazor? Download Free 30-day trial
Grid - Keyboard Navigation
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Product Name
|
Unit Price
|
Discontinued
|
---|
Chai | 18.00 | False | ||
Chang | 19.00 | False | ||
Aniseed Syrup | 10.00 | False | ||
Chef Anton's Cajun Seasoning | 22.00 | False | ||
Chef Anton's Gumbo Mix | 21.35 | True | ||
Grandma's Boysenberry Spread | 25.00 | False | ||
Uncle Bob's Organic Dried Pears | 30.00 | False | ||
Northwoods Cranberry Sauce | 40.00 | False | ||
Mishi Kobe Niku | 97.00 | True | ||
Ikura | 31.00 | False |
- Keyboard-navigation.razor
- ProductService.cs
- ProductDto.cs
Focus
Supported keys and user actions
Tab Focus
The roving tab index for its data portion.
key moves focus through all focusable elements on the page and the grid does not block it - it usesThis means that you can go through the grid toolbar and filter row with the
key, then the focus goes through the data portion of the grid and you can navigate through the cells and rows with the arrow keys. To focus the pager, use the down arrow key from the last row.Pressing
from the data portion will move the focus to the next focusable element on the page - this can be some focusable element in the currently focused row (like a button or an input in a cell or template), or the next focusable element on the page after the grid (depending on the tab order of the page).Toolbar
The toolbar of the grid is a template, and it is within the TabIndex
of the grid, so you do not need
to defined explicit TabIndex
attributes to elements inside it. Doing so may put them after the grid in
the general tab order of the page.
Data Element
Command Column
Checkbox Column
Edited Row
To exit the InLine edit mode, go to the Update or Cancel button in the command column.
To exit the PopUp edit mode, go to the Save or Cancel button in the popup itself.
To exit the InCell edit mode, move focus away from the grid. Pressing on the last row also ends edit mode, but on other rows it puts the next row in edit mode to allow fast data entry.
Pager
If the focus is in the last grid row, you can focus the pager by pressing
Filter Row
Filter Menu
Multi-checkbox Filter
Column Menu
Group Row
Detail Template Cell
Popup Editor
Description
You can navigate through the Telerik Grid for Blazor using your keyboard. To enable that built-in feature use the Navigable parameter and set it to true. After the rendered component you can see a list of the possible key combinations and what actions do they perform. For example, clicking on Alt and W focuses the first component on the page. The Alt and Down Key combination opens the popup of the Filter Menu. To move the focus to the Filter Menu icon use the Tab key.