Interface IReportViewerBuilder
Represents a builder that provides a way to initialize the report viewer
Namespace: Telerik.ReportViewer.Mvc
Assembly: Telerik.ReportViewer.Mvc.dll
Syntax
public interface IReportViewerBuilder
Methods
AccessibilityKeyMap(AccessibilityKeyMap)
Sets the key mappings used in accessibility mode.
Declaration
IReportViewerBuilder AccessibilityKeyMap(AccessibilityKeyMap keyMap)
Parameters
Returns
AuthenticationToken(String)
The encoded authentication token used to authenticate the requests.
Declaration
IReportViewerBuilder AuthenticationToken(string token)
Parameters
System.
|
Returns
CheckedButtonClass(String)
Sets the class to be used by buttons in the checked state.
Declaration
IReportViewerBuilder CheckedButtonClass(string checkedButtonClass)
Parameters
System.
|
Returns
ClientEvents(Action<IClientEventsBuilder>)
Provides a way to initialize the event handlers of the report viewer.
Declaration
IReportViewerBuilder ClientEvents(Action<IClientEventsBuilder> clientEventsBuilder)
Parameters
System.
|
Returns
Deferred()
Defers the script initialization statement.
Declaration
IReportViewerBuilder Deferred()
Returns
DirectPrint(Boolean)
Sets whether the viewer should use the browser's Adobe PDF plug-in for the print action.
Declaration
[Obsolete("Telerik.ReportViewer.Mvc.IReportViewerBuilder.DirectPrint(bool) is now obsolete. Please use Telerik.ReportViewer.Mvc.IReportViewerBuilder.PrintMode(Telerik.ReportViewer.Mvc.PrintMode) overload instead.")]
IReportViewerBuilder DirectPrint(bool directPrint)
Parameters
System.
|
Returns
DisabledButtonClass(String)
Sets the class to be used by buttons in the disabled state.
Declaration
IReportViewerBuilder DisabledButtonClass(string disabledButtonClass)
Parameters
System.
|
Returns
DocumentMapAreaPosition(DocumentMapAreaPosition)
Specifies where the Document Map Area should be displayed. Right - Displays Document Map Area on the right of the page view. Left - Displays Document Map Area on the left of the page view.
Declaration
IReportViewerBuilder DocumentMapAreaPosition(DocumentMapAreaPosition documentMapAreaPosition)
Parameters
Document
|
Returns
DocumentMapVisible(Boolean)
Sets the viewer’s document map initial visibility state.
Declaration
IReportViewerBuilder DocumentMapVisible(bool visible)
Parameters
System.
|
Returns
EnableAccessibility(Boolean)
Enables or disables the accessibility features of the report viewer and its contents.
Declaration
IReportViewerBuilder EnableAccessibility(bool enable)
Parameters
System.
|
Returns
Id(String)
Each report viewer must have an id - it will be used by the initialization script to find the element and initialize the report viewer.
Declaration
IReportViewerBuilder Id(string id)
Parameters
System.
|
Returns
InitialPageAreaImageUrl(String)
The image URL for the PageArea background image. Used only when the parameter values are missing or invalid.
Declaration
IReportViewerBuilder InitialPageAreaImageUrl(string initialPageAreaImageUrl)
Parameters
System.
|
Returns
KeepClientAlive(Boolean)
Gets or sets a value indicating whether the client will be kept alive.
When set to true a request will be sent to the server to stop the client from expiring, determined by the ClientSessionTimeout server configuration
When set to false, the client will be left to be expired
Declaration
IReportViewerBuilder KeepClientAlive(bool keepClientAlive)
Parameters
System.
|
Returns
PageMode(PageMode)
Specifies whether the viewer is in Continuous scroll or Single page mode. SinglePage - Displays only one report page in PageArea container ContinuousScroll - Displays large amount of report pages by appending additional pages on demand.
Declaration
IReportViewerBuilder PageMode(PageMode pageMode)
Parameters
Page
|
Returns
ParameterEditors(Action<IParameterEditorsBuilder>)
Provides a way to initialize the parameter editors of the report viewer.
Declaration
IReportViewerBuilder ParameterEditors(Action<IParameterEditorsBuilder> parameterEditorsBuilder)
Parameters
System.
|
Returns
Parameters(Parameters)
The parameters options
Declaration
IReportViewerBuilder Parameters(Parameters parametersOptions)
Parameters
Parameters
parametersOptions
|
Returns
ParametersAreaPosition(ParametersAreaPosition)
Specifies where the Parameters Area should be displayed. Right - Displays Parameters Area on the right of the page view. Left - Displays Parameters Area on the left of the page view. Top - Displays Parameters Area on the top of the page view. Bottom - Displays Parameters Area on the bottom of the page view.
Declaration
IReportViewerBuilder ParametersAreaPosition(ParametersAreaPosition parametersAreaPosition)
Parameters
Parameters
|
Returns
ParametersAreaVisible(Boolean)
Sets the viewer’s parameters area initial visibility state.
Declaration
IReportViewerBuilder ParametersAreaVisible(bool visible)
Parameters
System.
|
Returns
PersistSession(Boolean)
Sets whether the viewer’s client session to be persisted between the page’s refreshes(ex. postback). The session is stored in the browser’s sessionStorage and is available for the duration of the page session.
Declaration
IReportViewerBuilder PersistSession(bool persistSession)
Parameters
System.
|
Returns
PrintMode(PrintMode)
Sets the print mode of the viewer. Three modes exist currently: AutoSelect - Specifies that the viewer should automatically determine how to print: through the browser's PDF plug-in or through export to a PDF file. ForcePDFPlugin - Specifies that the viewer should always use the PDF plugin regardless of the browser's version and settings. ForcePDFFile - Specifies that the viewer should always export the report document to PDF format with the 'print' script enabled.
Declaration
IReportViewerBuilder PrintMode(PrintMode printMode)
Parameters
Print Specifies the print mode of the viewer. |
Returns
ReportResolver(IReportResolver)
Sets the chain of report resolvers
Declaration
[Obsolete]
IReportViewerBuilder ReportResolver(IReportResolver resolver)
Parameters
IReport
|
Returns
ReportServer(ReportServer)
The connection data of the report server that hosts the reports. For more information see https://www.telerik.com/help/reporting/html5-report-viewer-howto-use-it-with-reportserver.html.
Declaration
IReportViewerBuilder ReportServer(ReportServer reportServer)
Parameters
Report
|
Returns
ReportSource(String)
Sets the Report
Declaration
IReportViewerBuilder ReportSource(string report)
Parameters
System.
|
Returns
ReportSource(String, IDictionary<String, Object>)
Sets the Report
Declaration
IReportViewerBuilder ReportSource(string report, IDictionary<string, object> parameters)
Parameters
System.
|
System.
|
Returns
ReportSource(ReportSource)
Sets the Report
Declaration
[Obsolete]
IReportViewerBuilder ReportSource(ReportSource reportSource)
Parameters
Report
|
Returns
ReportSource(TypeReportSource)
Sets the Report
Declaration
IReportViewerBuilder ReportSource(TypeReportSource typeReportSource)
Parameters
Type
|
Returns
ReportSource(UriReportSource)
Sets the Report
Declaration
IReportViewerBuilder ReportSource(UriReportSource uriReportSource)
Parameters
Uri
|
Returns
Scale(Double)
Zoom in and out the report using the scale. 1.0 is equal to 100%, i.e. the original size of the report.
Declaration
IReportViewerBuilder Scale(double scale)
Parameters
System.
|
Returns
ScaleMode(ScaleMode)
Sets the scale mode of the viewer. Three modes exist currently: FitPage - The whole report will fit on the page (will zoom in or out), regardless of its width and height. FitPageWidth - The report will be zoomed in or out so that the width of the screen and the width of the report match. Specific - Uses the scale to zoom in and out the report.
Declaration
IReportViewerBuilder ScaleMode(ScaleMode scaleMode)
Parameters
Scale
|
Returns
ScaleMode(ScaleModes)
Sets the scale mode of the viewer. Three modes exist currently: FIT_PAGE - The whole report will fit on the page (will zoom in or out), regardless of its width and height. FIT_PAGE_WIDTH - The report will be zoomed in or out so that the width of the screen and the width of the report match. SPECIFIC - Uses the scale to zoom in and out the report.
Declaration
[Obsolete("Telerik.ReportViewer.Mvc.IReportViewerBuilder.ScaleMode(Telerik.ReportViewer.Mvc.ScaleModes) is now obsolete. Please use Telerik.ReportViewer.Mvc.IReportViewerBuilder.ScaleMode(Telerik.ReportViewer.Mvc.ScaleMode) overload instead.")]
IReportViewerBuilder ScaleMode(ScaleModes scaleMode)
Parameters
Scale
|
Returns
SearchMetadataOnDemand(Boolean)
Determines whether the search metadata will be delivered on demand or by default.
Declaration
IReportViewerBuilder SearchMetadataOnDemand(bool enable)
Parameters
System.
|
Returns
Remarks
Enabling search will notify the report engine to produce search metadata while rendering the report. This metadata is used by the report viewer in search dialog and in the report viewer area for highlighting the found and selected items. Default value: false
SendEmail(SendEmail)
The send e-mail message options
Declaration
IReportViewerBuilder SendEmail(SendEmail sendEmailOptions)
Parameters
Send
|
Returns
ServiceUrl(String)
The URL of the service which will provide the report viewer with reports. The service must be properly configured so that the report viewer can successfully communicate with the server. For more information on how to configure the service please check https://docs.telerik.com/reporting/embedding-reports/host-the-report-engine-remotely/telerik-reporting-rest-services/overview.
Declaration
IReportViewerBuilder ServiceUrl(string serviceUrl)
Parameters
System.
|
Returns
TemplateUrl(String)
The url for the report viewer template. The template can be edited - new functionalities can be added and not needed ones can be removed. For more information please check https://docs.telerik.com/reporting/embedding-reports/display-reports-in-applications/web-application/html5-report-viewer/customizing/styling-and-appearance/templates-structure.
Declaration
IReportViewerBuilder TemplateUrl(string templateUrl)
Parameters
System.
|
Returns
ViewMode(ViewMode)
Specifies whether the viewer is in interactive or print preview mode. PrintPreview - Displays the paginated report as if it is printed on paper. Interactivity is not enabled. Interactive - Displays the report in its original width and height with no paging. Additionally interactivity is enabled.
Declaration
IReportViewerBuilder ViewMode(ViewMode viewMode)
Parameters
View
|
Returns
ViewMode(ViewModes)
Specifies whether the viewer is in interactive or print preview mode. PRINT_PREVIEW - Displays the paginated report as if it is printed on paper. Interactivity is not enabled. INTERACTIVE - Displays the report in its original width and height with no paging. Additionally interactivity is enabled.
Declaration
[Obsolete("Telerik.ReportViewer.Mvc.IReportViewerBuilder.ViewMode(Telerik.ReportViewer.Mvc.ViewModes) is now obsolete. Please use Telerik.ReportViewer.Mvc.IReportViewerBuilder.ViewMode(Telerik.ReportViewer.Mvc.ViewMode) overload instead.")]
IReportViewerBuilder ViewMode(ViewModes viewMode)
Parameters
View
|