New to Telerik ReportingStart a free 30-day trial

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

Occurs before an interactive action is executed, providing the ability to cancel the execution.

Parameters:

ParameterDescription
eThis 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.
argsAn object with the following properties:
  • element - the DOM element that triggered the action.
  • action - the current action instance.
  • cancel - a flag that determines if the further processing of the action should be canceled or not.
JavaScript
// $(handler) is jQuery's shorthand for $(document).ready(handler)
$(function () {
	$("#reportViewer1").telerik_ReportViewer({
		serviceUrl: "api/reports/",
		reportSource: {
			report: "Telerik.Reporting.Examples.CSharp.ProductSales, CSharp.ReportLibrary"
		},
		interactiveActionExecuting: function(e, args) {
			if (args.action.Type === 'navigateToReport') {
				args.cancel = !confirm("You are about to navigate to report "+args.action.Value.Report + ".\r\n\nContinue?");
			}
		}
	});
});

See Also

In this article
See Also
Not finding the help you need?
Contact Support