New to Telerik Reporting? Download free 30-day trial

Client Events

This article explains how to attach client event handlers to an MVC ReportViewer instance.

To attach a client event handler you have to set the appropriate ClientEvents widget method as shown below:

<script>
  function onRenderingBegin() {
      console.log("rendering begin!");
  }
  function onRenderingEnd() {
      console.log("rendering end!");
  }
</script>
@(Html.TelerikReporting().ReportViewer()
        // each deferred script will be rendered at the place of TelerikReporting().DeferredScripts().
        //.Deferred()
     .ClientEvents(
                events => events
                 .RenderingBegin("onRenderingBegin")
                 .RenderingEnd("onRenderingEnd")
                 )
)

The following table list the available client events:

Event Description
RenderingBegin Occurs before rendering the report. For the underlying JS methods see here
RenderingEnd Occurs after rendering the report. For the underlying JS methods see here
PrintBegin Occurs before printing the report. For the underlying JS methods see here
PrintEnd Occurs after printing the report. For the underlying JS methods see here
ExportBegin Occurs before exporting the report. For the underlying JS methods see here
ExportEnd Occurs after exporting the report. For the underlying JS methods see here
UpdateUi Occurs on each UI update of the viewer. For the underlying JS methods see here
Error Error occurred. For the underlying JS methods see here
PageReady Occurs after a page of the report is ready. For the underlying JS methods see here
Ready Report viewer is ready. For the underlying JS methods see here
InteractiveActionExecuting Occurs before an interactive action is executed, providing the ability to cancel the execution. For the underlying JS methods see here
InteractiveActionEnter Occurs when the mouse cursor enters the area of an interactive action. For the underlying JS methods see here
InteractiveActionLeave Occurs when the mouse cursor leaves the area of an interactive action. For the underlying JS methods see here
ViewerToolTipOpening Occurs before a tooltip is opened, providing the ability to cancel its opening. For the underlying JS methods see here
SendEmailBegin Occurs before the report is exported and the E-mail message is sent. For the underlying JS methods see here
SendEmailEnd Occurs after the report is exported and before the E-mail message is sent. For the underlying JS methods see here
In this article
Not finding the help you need? Improve this article