Glow skin

PdfViewer - Keyboard Support

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

Keyboard Support

RadPdfViewer provides with built-in keyboard support and can be used as soon the control gets focused. You can focus it by iterating through the Page controls using the Tab key, alternatively, you can use a shortcut if you set the AccessKey property.

<telerik:RadPdfViewer runat="server" ID="RadPdfViewer1" AccessKey="w"></telerik:RadPdfViewer>
  • Under IE and Chrome use Alt + AccessKey
  • Under Firefox use Shift + Alt + AccessKey

KEYBOARD LEGEND

Focus

  • Alt + W Focuses the toolbar of the PDFViewer.

Closed popup:

Supported keys and user actions

  • Tab Focuses the next element in the toolbar.
  • Shift + Tab Focuses the previous element in the toolbar.
  • Enter Presses the focused toolbar button.
  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page Language="vb" AutoEventWireup="true"  Inherits="Telerik.Web.Examples.PdfViewer.KeyboardSupport.DefaultVB" CodeFile="DefaultVB.aspx.vb" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <script type="text/javascript">
        window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
    </script>
    <div class="demo-container size-wide no-bg" runat="server">
        <telerik:RadPdfViewer runat="server" ID="RadPdfViewer2" Height="550px" Width="100%" Scale="0.9" ActivePage="2" AccessKey="w">
            <PdfjsProcessingSettings File="../Document.pdf">
            </PdfjsProcessingSettings>
        </telerik:RadPdfViewer>
    </div>

    </form>
</body>
</html>

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?