Telerik Reporting R1 2017

pageReady(e, args)

Occurs after a page of the report is ready.

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:

  • pageContent - the page content of the rendered report as a resource.

JavaScript
// $(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"
    },

    pageReady: function(e, args) { 
      console.log("This event handler will be called after a page of the report is ready.");
      console.log("The content of the page is: " + args.pageContent); 
    }
});