skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • MCP Servers
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    MCP Servers

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class 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.

Inheritance
System.Object
DeferredScripts
Namespace: Telerik.ReportViewer.Html5.WebForms
Assembly: Telerik.ReportViewer.Html5.WebForms.dll

Syntax

public class DeferredScripts : WebControl
Remarks

Provides a way to defer script execution until a controlled point in the page rendering process, improving page load performance by separating script registration from script execution.

Constructors

DeferredScripts()

Declaration
public DeferredScripts()

Methods

Render(HtmlTextWriter)

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

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
System.Web.UI.HtmlTextWriter writer

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

Remarks

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

RenderContents(HtmlTextWriter)

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

Declaration
protected override void RenderContents(HtmlTextWriter output)
Parameters
System.Web.UI.HtmlTextWriter output

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

Remarks

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

ToString()

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

Declaration
public override string ToString()
Returns
System.String

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

Remarks

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

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.