New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Calendar Keyboard Navigation

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
keyboard_navigation.cshtml
Keyboard_NavigationController.cs
Keyboard_Navigation_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

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.

The keyboard navigation of the Telerik UI for ASP.NET Core Calendar is based on the key-down events on the wrapper element of the component and is always available, as demonstrated in this demo. You can review the following available key combinations.

Focus

  • Alt + W Focuses the component.

Supported Keys and user actions

  • Left Arrow Highlights the previous day.
  • Right Arrow Highlights the next day.
  • Up Arrow Highlights the same day from the previous week.
  • Down Arrow Highlights the same day from the next week.
  • Ctrl + Left Arrow Navigates to the previous month.
  • Ctrl + Right Arrow Navigates to the next month.

 

  • Ctrl + Up Arrow Navigates to the previous view.
  • Ctrl + Down Arrow Navigates to the next view.
  • Home Highlights the first day of the month.
  • End Highlights the last day of the month.
  • Enter or Space If in the Month view, selects the highlighted day. In other views, navigates to the lower view.

Multiple Selection Mode

  • Ctrl + Enter or Ctrl + Space Adds the highlighted day to the current selection. If that day was already selected, it will be removed from the selection.
  • Shift + Left Arrow or Shift + Right Arrow Adds the next (or previous) date to the selected items.
  • Shift + Up Arrow or Shift + Down Arrow In the Month view, extends the selection up (or down) one row.
  • Shift + Space Performs range selection, selects all dates between the last selected one (with Space or mouse click) and the one holding the focused cell.

Additional Apps

This Calendar example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources