Skip to content

Commit 9b8374a

Browse files
author
Marin Bratanov
committed
docs(calendar): set accesskey via markup
1 parent 7db1332 commit 9b8374a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

controls/calendar/accessibility-and-internationalization/keyboard-support.md

+14
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ A built-in access key is `Y` so you can use `Alt+Y` to focus the control by defa
4646
</script>
4747
````
4848

49+
>caption How to change the markup and script to use a key set in the control markup.
50+
51+
````ASPX
52+
<telerik:RadCalendar ID="RadCalendar1" RenderMode="Lightweight" runat="server"
53+
EnableKeyboardNavigation="true" EnableAriaSupport="true" EnableMultiSelect="false">
54+
<ClientEvents OnLoad="function(s,a){OnLoad(s,a,'K')}" />
55+
</telerik:RadCalendar>
56+
<script>
57+
function OnLoad(sender, args, theKey) {
58+
$telerik.$(sender.get_element()).find(".rcMainTable").first().attr("accessKey", theKey);
59+
}
60+
</script>
61+
````
62+
4963

5064
# See Also
5165

0 commit comments

Comments
 (0)