DeferredScripts
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:
[ToolboxBitmap(typeof(ReportViewer), "Resources.DeferredScripts.bmp")]
public class DeferredScripts : WebControl
Inheritance: objectControlWebControlDeferredScripts
Constructors
public DeferredScripts()
Methods
Renders the control content by outputting the deferred JavaScript scripts to the specified HTML writer.
protected override void Render(HtmlTextWriter writer)
The HtmlTextWriter object that receives the control output for rendering on the client.
Overrides:
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.
protected override void RenderContents(HtmlTextWriter output)
The HtmlTextWriter object that receives the JavaScript initialization scripts for output to the client.
Overrides:
Retrieves and renders all deferred JavaScript scripts that have been collected during the page lifecycle for HTML5 ReportViewer components.
ToString()
string
Converts the deferred scripts collection into an HTML string containing the JavaScript initialization statements.
public override string ToString()
string
An HTML string containing all deferred JavaScript scripts with script tags for HTML5 ReportViewer initialization.
Overrides:
Retrieves all scripts that were stashed during the page lifecycle and formats them as HTML script elements for execution in the browser.