InterfaceIClientEventsBuilder
Represents a builder that provides a fluent API for configuring client-side event handlers of the MVC Report Viewer. Used to attach JavaScript functions that respond to various report viewer events during report rendering, printing, exporting, and user interaction.
Definition
Namespace:Telerik.ReportViewer.Mvc
Assembly:Telerik.ReportViewer.Mvc.dll
Syntax:
public interface IClientEventsBuilder
Methods
Error(string)
Attaches an event handler that will be called when an error occurs.
Declaration
IClientEventsBuilder Error(string onError)
Parameters
onError
string
The name of the JavaScript handler function (without parentheses) that handles error events.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The error event is triggered when any error occurs during report processing, rendering, or viewer operations.
ExportBegin(string)
Attaches an event handler that will be called prior to starting the report export command.
Declaration
IClientEventsBuilder ExportBegin(string onExportBegin)
Parameters
onExportBegin
string
The name of the JavaScript handler function (without parentheses) that handles the export begin event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The export begin event is triggered before the report viewer starts generating the export document.
ExportEnd(string)
Attaches an event handler that will be called when the exported document is ready for download, but prior to the actual downloading.
Declaration
IClientEventsBuilder ExportEnd(string onExportEnd)
Parameters
onExportEnd
string
The name of the JavaScript handler function (without parentheses) that handles the export end event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The export end event is triggered when the export document is ready but before the download starts.
InteractiveActionEnter(string)
Attaches an event handler that will be called when the mouse cursor enters the action's report item area.
Declaration
IClientEventsBuilder InteractiveActionEnter(string onInteractiveActionEnter)
Parameters
onInteractiveActionEnter
string
The name of the JavaScript handler function (without parentheses) that handles the interactive action enter event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The interactive action enter event is triggered when the mouse hovers over interactive report elements.
InteractiveActionExecuting(string)
Attaches an event handler that will be called when an interactive action is executed.
Declaration
IClientEventsBuilder InteractiveActionExecuting(string onInteractiveActionExecuting)
Parameters
onInteractiveActionExecuting
string
The name of the JavaScript handler function (without parentheses) that handles the interactive action executing event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The interactive action executing event is triggered when user clicks on interactive elements like drill-through links or toggle buttons.
InteractiveActionLeave(string)
Attaches an event handler that will be called when the mouse cursor leaves the action's report item area.
Declaration
IClientEventsBuilder InteractiveActionLeave(string onInteractiveActionLeave)
Parameters
onInteractiveActionLeave
string
The name of the JavaScript handler function (without parentheses) that handles the interactive action leave event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The interactive action leave event is triggered when the mouse cursor moves away from interactive report elements.
PageReady(string)
Attaches an event handler that will be called every time a page from the report is rendered and ready for display.
Declaration
IClientEventsBuilder PageReady(string onPageReady)
Parameters
onPageReady
string
The name of the JavaScript handler function (without parentheses) that handles the page ready event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The page ready event is triggered when each individual report page completes rendering and is ready for display.
PrintBegin(string)
Attaches an event handler that will be called prior to starting the print report command.
Declaration
IClientEventsBuilder PrintBegin(string onPrintBegin)
Parameters
onPrintBegin
string
The name of the JavaScript handler function (without parentheses) that handles the print begin event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The print begin event is triggered before the report viewer starts generating the print document.
PrintEnd(string)
Attaches an event handler that will be called when the print document (Adobe PDF) is ready for download, but prior to being sent to the printer.
Declaration
IClientEventsBuilder PrintEnd(string onPrintEnd)
Parameters
onPrintEnd
string
The name of the JavaScript handler function (without parentheses) that handles the print end event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The print end event is triggered when the PDF print document is ready but before actual printing occurs.
Ready(string)
Attaches an event handler that will be called when the report viewer template is loaded.
Declaration
IClientEventsBuilder Ready(string onReady)
Parameters
onReady
string
The name of the JavaScript handler function (without parentheses) that handles the ready event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The ready event is triggered when the report viewer template and UI components are fully loaded and initialized.
RenderingBegin(string)
Attaches an event handler that will be called when the rendering of the report begins.
Declaration
IClientEventsBuilder RenderingBegin(string onRenderingBegin)
Parameters
onRenderingBegin
string
The name of the JavaScript handler function (without parentheses) that handles the rendering begin event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The rendering begin event is triggered when the report viewer starts processing and rendering the report content.
RenderingEnd(string)
Attaches an event handler that will be called when the rendering of the report ends.
Declaration
IClientEventsBuilder RenderingEnd(string onRenderingEnd)
Parameters
onRenderingEnd
string
The name of the JavaScript handler function (without parentheses) that handles the rendering end event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The rendering end event is triggered when the report viewer completes processing and rendering the report content.
UpdateUi(string)
Attaches an event handler that will be called every time the UI needs an update; can be used for changing the UI of the report viewer while interacting with reports.
Declaration
IClientEventsBuilder UpdateUi(string onUpdateUi)
Parameters
onUpdateUi
string
The name of the JavaScript handler function (without parentheses) that handles the UI update event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The UI update event is triggered whenever the report viewer interface needs to refresh during user interactions.
ViewerToolTipOpening(string)
Attaches an event handler that will be called when a tooltip is being opened.
Declaration
IClientEventsBuilder ViewerToolTipOpening(string onViewerToolTipOpening)
Parameters
onViewerToolTipOpening
string
The name of the JavaScript handler function (without parentheses) that handles the tooltip opening event.
Returns
The current IClientEventsBuilder instance for method chaining.
Remarks
The tooltip opening event is triggered when tooltips are about to be displayed for report elements or viewer controls.