New to Telerik ReportingStart a free 30-day trial

Represents a WebForms control that renders deferred JavaScript initialization scripts for HTML5 ReportViewer components. Used to collect and output JavaScript initialization code at a specific location in the HTML document for optimal performance and loading behavior.

Definition

Namespace:Telerik.ReportViewer.Html5.WebForms

Assembly:Telerik.ReportViewer.Html5.WebForms.dll

Syntax:

C#
[ToolboxBitmap(typeof(ReportViewer), "Resources.DeferredScripts.bmp")]
public class DeferredScripts : WebControl

Inheritance: objectControlWebControlDeferredScripts

Constructors

C#
public DeferredScripts()

Methods

Renders the control content by outputting the deferred JavaScript scripts to the specified HTML writer.

C#
protected override void Render(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter object that receives the control output for rendering on the client.

Overrides: WebControl.Render(HtmlTextWriter)

Remarks:

Overrides the base render method to provide custom script output without additional HTML wrapper elements.

Renders the JavaScript content of the control by writing the deferred scripts to the specified HTML writer.

C#
protected override void RenderContents(HtmlTextWriter output)
Parameters:outputHtmlTextWriter

The HtmlTextWriter object that receives the JavaScript initialization scripts for output to the client.

Overrides: WebControl.RenderContents(HtmlTextWriter)

Remarks:

Retrieves and renders all deferred JavaScript scripts that have been collected during the page lifecycle for HTML5 ReportViewer components.

Converts the deferred scripts collection into an HTML string containing the JavaScript initialization statements.

C#
public override string ToString()
Returns:

string

An HTML string containing all deferred JavaScript scripts with script tags for HTML5 ReportViewer initialization.

Overrides: object.ToString()

Remarks:

Retrieves all scripts that were stashed during the page lifecycle and formats them as HTML script elements for execution in the browser.