Progress® Telerik® Reporting R1 2018

ReportViewerInteractiveActionExecuting Event

Occurs when an action is being executed. Execution can be canceled.

Namespace:  Telerik.ReportViewer.Wpf
Assembly:  Telerik.ReportViewer.Wpf (in Telerik.ReportViewer.Wpf.dll)


public event InteractiveActionExecutingEventHandler InteractiveActionExecuting


Type: Telerik.ReportViewer.WpfInteractiveActionExecutingEventHandler


This example illustrates how to wire the event and use the event arguments.
void reportViewer1_CustomInteractiveActionExecuting(object sender, Telerik.ReportViewer.Wpf.InteractiveActionCancelEventArgs args)
    var strB = new System.Text.StringBuilder();
    strB.AppendLine("ReportItem name: " + args.Action.ReportItemName);

    var customAction = args.Action as Telerik.Reporting.Processing.CustomAction;
    if (null != customAction)
        foreach (var p in customAction.Parameters)
            strB.AppendLine(string.Format("Parameter \"{0}\" value: {1}", p.Key, p.Value));

    strB.AppendLine(string.Format("Mouse cursor position: {0}; Item bounds: {1}", args.CursorPos, args.Bounds));

void reportViewer1_InteractiveActionExecuting(object sender, Telerik.ReportViewer.Wpf.InteractiveActionCancelEventArgs args)
    var navigateToUrlAction = args.Action as Telerik.Reporting.Processing.NavigateToUrlAction;
    if (null != navigateToUrlAction)
        if (!navigateToUrlAction.Url.StartsWith("https"))
            args.Cancel = MessageBox.Show("You are about to navigate to a non-secure page. Continue?", "Warning", MessageBoxButton.YesNo, MessageBoxImage.Warning) != MessageBoxResult.Yes;

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article