Fixing "Error Loading the Report Viewer’s Templates" in Telerik Reporting 20.3.26.1110
Environment
| Product | Reporting |
| Version | 20.3.26.1110 |
| Report Viewer | HTML5 Report Viewer and Wrappers |
Description
After I updated my application to use Progress® Telerik® Reporting 2026 Q4 (20.3.26.1110) and Kendo UI for jQuery 2026.4.1111 (2026 Q4), the HTML5 Report Viewer no longer renders on the page. Instead, the error message pasted below is displayed in place of the report viewer.
Error Message
Error loading the report viewer's templates
Cause
This problem is caused by the latest version of Kendo UI for jQuery 2026.4.1111 (2026 Q4), which includes changes to icon names, specifically renaming the icon used for closing notifications from x-outline to x-circle. The mismatch in icon names in the viewer's template results in the error.
Solution
To resolve the issue, use one of the following solutions:
Solution 1: Use an Older Version of Kendo UI
-
Preferably, use the built-in custom Kendo bundle that the report viewer loads automatically when no Kendo is loaded on the page. The Kendo UI for jQuery version used in that release of Telerik Reporting is Kendo UI for jQuery 2026.3.811 (2026 Q3)
-
If not, use the following URL to reference the previous Kendo UI version in your project:
html<script src="https://cdn.jsdelivr.net/npm/@progress/kendo-ui@2026.3.1015/umd/kendo.all.min.js"></script>
If a Kendo bundle other than the report viewer's built-in bundle is used, it is necessary to provide a valid license for the Kendo UI controls to render as expected - Licensing in Kendo UI for jQuery
Solution 2: Replace Icon Name in GetResource Endpoint
The GetResource method of the ReportsController can be overridden. After getting the default response from the base implementation, you may replace the x-outline string in the response's content with x-circle.
For example:
public override IActionResult GetResource(string folder, string resourceName)
{
var response = base.GetResource(folder, resourceName);
if (response is FileStreamResult resource &&
string.Equals(folder, "templates", StringComparison.OrdinalIgnoreCase))
{
using var reader = new StreamReader(resource.FileStream, Encoding.UTF8);
var template = reader.ReadToEnd();
return this.Content(template.Replace("x-outline", "x-circle"), "text/html", Encoding.UTF8);
}
return response;
}If the Minimal API Approach is used for integrating the Reporting service, you can fix the template with response-rewriting middleware, which must be added before app.UseTelerikReporting().
For example:
app.Use(async (context, next) =>
{
if (!HttpMethods.IsGet(context.Request.Method) ||
!context.Request.Path.StartsWithSegments(
"/api/reports/resources/templates",
StringComparison.OrdinalIgnoreCase))
{
await next(context);
return;
}
var originalBody = context.Response.Body;
using var buffer = new MemoryStream();
context.Response.Body = buffer;
try
{
await next(context);
buffer.Position = 0;
context.Response.Body = originalBody;
if (context.Response.StatusCode is >= 200 and < 300)
{
using var reader = new StreamReader(buffer, Encoding.UTF8);
var template = await reader.ReadToEndAsync(context.RequestAborted);
var content = Encoding.UTF8.GetBytes(template.Replace("x-outline", "x-circle"));
context.Response.ContentType = "text/html; charset=utf-8";
context.Response.ContentLength = content.Length;
await originalBody.WriteAsync(content, context.RequestAborted);
}
else
{
await buffer.CopyToAsync(originalBody, context.RequestAborted);
}
}
finally
{
context.Response.Body = originalBody;
}
});
app.UseTelerikReporting();
Solution 3: Update the Template Locally
- Download the default template from the following URL or use the response template: Telerik Report Viewer Template
- Save the template locally in your project directory.
- Open the downloaded template file and locate the line that specifies the
x-outlineicon (usually line 20). - Replace
x-outlinewithx-circle. - Update your viewer's configuration to reference the local template. For configuration instructions, refer to the Providing Custom Templates to the HTML5 Report Viewer
Example configuration for referencing the local template:
$("#reportViewer1").telerik_ReportViewer({
serviceUrl: "api/reports",
templateUrl: "path-to-local-template/telerikReportViewerTemplate.html",
reportSource: {
report: "Dashboard.trdp"
}
});