• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Events

The KendoReact PDFViewer component exposes several events to let you easily handle file operations logic in React apps. Below is a summary of the available events and their triggers:

  • onLoad—Fires when a PDF document has been loaded.
  • onError—Fires when an error occurs, for example, when the selected file cannot be read.
  • onDownload—Fires when the download tool has been clicked. To prevent the download, return false.
  • onPageChange—Fires when the page has changed.
  • onZoom—Fires when the zoom level has changed.
  • onRenderContent—Fires when the content component is about to be rendered.
  • onRenderLoader—Fires when the loading indication component is about to be rendered.
  • onRenderToolbar—Fires when the toolbar component is about to be rendered.

The following example demonstrates basic PDFViewer events.

Example
View Source
Change Theme:

In this article

Not finding the help you need?