New to Telerik Reporting? Download free 30-day trial

The exportBegin(e, args) Event of the HTML5 Report Viewer

Occurs before exporting the report.


Parameter Description
e This is the jQuery.Event object and is respectively jQuery's is the report viewer that raised the event.
args An object with properties:
  • format - the document format of the exported report.
  • deviceInfo - the device info that will be used for the export operation.
  • handled - prevent the default render and export operation. Default value: false.
// $(handler) is jQuery's shorthand for $(document).ready(handler)
$(function () {
        serviceUrl: "api/reports/",
        reportSource: {
            report: "Telerik.Reporting.Examples.CSharp.Invoice, CSharp.ReportLibrary"
        exportBegin: function(e) { console.log("This event handler will be called before exporting the report in" + arguments.format); }

Event Binding

The report viewer currently exposes two ways for binding event handlers to events. You may attach event handlers when you instantiate the report viewer, or after that, using the bind method. For a complete list of binding options during initialization please check Report Viewer Initialization. For a complete list of all event names exposed through telerikReportViewer.Events please check telerikReportViewer Namespace, Events.

See Also

In this article