Keyboard Support
The enable the keyboard navigation of RadTimeline set its Navigatable property to 'true'.
You can focus it by iterating through the Page controls using the Tab key, alternatively, you can use the Alt+W shortcut as shown in the script below:
<
telerik:RadTimeline
runat
=
"server"
ID
=
"RadTimeline1"
AlternatingMode
=
"true"
CollapsibleEvents
=
"true"
Navigatable
=
"true"
>
...
</
telerik:RadTimeline
>
<
script
>
var $ = $telerik.$;
$(document.body).keydown(function (e) {
if (e.altKey && e.keyCode == 87) {
$(".k-card:first").focus();
}
});
</
script
>
The demo showcases how to focus the widget when the Vertical mode is used. In order to focus the widget with the ALT+W key combination in Horizontal mode, you should use the ".k-timeline-scrollable-wrap" class as a selector.
Keyboard Legend
The timeline supports the following keyboard shortcuts in Vertical mode:
-
Tab
Focus the next card.
-
Shift + Tab
Focus the next card.
-
Space
Toggle the expand/collapse state of the item.
-
Enter
Toggle the expand/collapse state of the item.
Shortcuts in Horizontal mode:
-
Enter
-
Selects the current event.
-
Space
-
Selects the current event.
-
Left Arrow
-
Focuses the previous date.
-
Right Arrow