New to Telerik Reporting? Download free 30-day trial

Styling and Appearance of the HTML5 WebForms Report Viewer

The article elaborates on the styles used by the WebForms wrapper of the HTML5 Report Viewer, and how they can be loaded manually in order to be modified.

The required stylesheets are provided automatically through a HTTPHandler via request to the Reporting REST service. If you want to customize the viewer styling you can stop the HTTPHandler from providing report viewer required Kendo CSS and JavaScripts by manually registering the Kendo JavaScript and CSS in the page head. The same approach should be used also when it is required to change the default theme of the viewer. Here is an example:

<head>
    ....
    <!--kendo.all.min.js can be used as well instead of kendo.web.min.js, kendo.mobile.min.js or telerikReportViewer-kendo-->
    <script src="https://kendo.cdn.telerik.com/2022.3.913/js/kendo.web.min.js" /script>
    <!--kendo.mobile.min.js - optional, if gestures/touch support is required-->
    <script src="https://kendo.cdn.telerik.com/2022.3.913/js/kendo.mobile.min.js" /script>
    <!--telerikReportViewer-kendo - optional, if you need to use a theme different from the default one-->
    <script src="/api/reports/resources/js/telerikReportViewer-kendo" /script>
    <!-- the required Kendo styles -->
    <link href="https://kendo.cdn.telerik.com/2022.3.913/styles/kendo.common.min.css" rel="stylesheet" />
    <link href="https://kendo.cdn.telerik.com/2022.3.913/styles/kendo.blueopal.min.css" rel="stylesheet" />
</head>

The HTML5 Web Forms Report Viewer is using the default viewer template. In order to use your own viewer template you have to provide path to your customized one to the TemplateUrl.

For more information on the used stylesheets and report viewer templates check out the following HTML5 Report Viewer articles:

See Also

In this article