Progress® Telerik® Reporting R3 2018

exportEnd(e, args)

Occurs after exporting the report.

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:

  • url - the url of the exported report as a resource.

  • format - the document format of the exported report.

  • handled - prevent the default export operation. Default value: false.

  • windowOpenTarget - change target attribute specifying where to open the browser window. Default value is _self.

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"
    },

    exportEnd: function(e, args) {
      args.windowOpenTarget = "_blank";
      console.log("This event handler will be called after exporting the report.");
      console.log("The exported report can be found at " + args.url); 
    }
});
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy