New to Telerik Reporting? Download free 30-day trial

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

Occurs before rendering the report.

The event is triggered only on preview. Export and print operations each have a dedicated event.

Parameters:

Parameter Description
e This is the jQuery.Event object and e.data is respectively jQuery's event.data.
e.data.sender is the report viewer that raised the event.
args An object with properties:
  • deviceInfo - the device info that will be used for the render operation.
// $(handler) is jQuery's shorthand for $(document).ready(handler)
$(function () {
    $("#reportViewer1").telerik_ReportViewer({
        serviceUrl: "api/reports/",
        reportSource: {
            report: "Telerik.Reporting.Examples.CSharp.Invoice, CSharp.ReportLibrary"
        },
        renderingBegin: function(e) { console.log("This event handler will be called before rendering the report."); }
    });
});

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.

In this article