New to Telerik Reporting? Download free 30-day trial

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

Occurs after the report is exported and before the E-mail message is sent.


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:
  • handled - prevent the default send email operation. Default value: false.
  • from - E-mail address used for the E-mail message FROM value.
  • to - E-mail address used for the E-mail message TO value.
  • cc - E-mail address used for the E-mail message Carbon Copy value.
  • format - the document format of the sent report.
  • subject - the subject of the sent E-mail message.
  • body - the content of the sent E-mail message.
  • url - the url of the sent report document as a resource.
// $(handler) is jQuery's shorthand for $(document).ready(handler)
$(function () {
        serviceUrl: "api/reports/",
        reportSource: {
            report: "Telerik.Reporting.Examples.CSharp.Invoice, CSharp.ReportLibrary"
        sendEmailEnd: function(e, args) {
            args.format = "XLS";
            console.log("This event handler will be called after exporting the report.");
            console.log("The exported report can be found at " + args.url);

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