Interface ITelerikReportingFactory
Represents a factory that provides methods for creating and configuring Telerik Reporting widgets for MVC applications. Used to generate JavaScript representations and initialization scripts for MVC Report Viewer components within web applications.
Namespace: Telerik.ReportViewer.Mvc
Assembly: Telerik.ReportViewer.Mvc.dll
Syntax
public interface ITelerikReportingFactory
Remarks
Provides a centralized factory pattern for creating reporting components with proper configuration and script generation.
Methods
DeferredScripts(Boolean)
Generates deferred initialization statements for Telerik Reporting widgets that have been configured with deferred initialization.
Declaration
DeferredScripts DeferredScripts(bool renderScriptTags = true)
Parameters
|
System.Boolean
renderScriptTags
True to wrap the initialization statements in HTML script tags, false to return only the JavaScript code. |
Returns
|
DeferredScripts
A DeferredScripts object containing the JavaScript initialization statements for deferred reporting widgets. |
Remarks
Used to render initialization scripts at a specific location in the page, typically at the end of the HTML document for optimal performance.
ReportViewer()
Creates and returns an MVC Report Viewer builder for configuring and initializing the report viewer component.
Declaration
IReportViewerBuilder ReportViewer()
Returns
|
IReportViewerBuilder
An IReportViewerBuilder instance that provides a fluent API for configuring the MVC Report Viewer. |
Remarks
Provides access to the complete configuration API for setting up report sources, display options, and client-side behavior.