New to Telerik Reporting? Download free 30-day trial

Renaming and Repositioning Preview Button in HTML5-based Report Viewers

Environment

Product Progress® Telerik® Reporting
Viewer HTML5-based Report Viewers

Description

I want to rename the Preview button in the HTML5 Report Viewer or one of its wrappers to match my custom requirements. Additionally, I want to reposition the Preview button to the top of the parameters area instead of its default position at the bottom.

Solution

Renaming the Preview Button

  1. Locate the telerikReportViewer.stringResources-19.2.25.813.js file in the installation folder - C:\Program Files (x86)\Progress\Telerik Reporting 2025 Q3\Html5\ReportViewer\js.
  2. Open the file and replace the parametersAreaPreviewButton: "Preview" value with your desired button name.
  3. Copy the updated telerikReportViewer.stringResources-19.2.25.813.js file to your project's Scripts folder(or any folder that you provide local files from such as wwwroot).

    The stringResource script file placed in a local directory inside the project

  4. Reference the updated script file on the page with the HTML5-based Report Viewer before the telerikReportViewer script. For example:

    <script src="/Scripts/telerikReportViewer.stringResources-19.1.25.521.js"></script>
    <script src="/api/reports/resources/js/telerikReportViewer"></script>
    
  5. Compile and run your project to verify the updated button name.

Moving the Preview Button to the Top

Use the followig CSS to move the Preview button to the top of the parameters area:

        .trv-parameters-area.preview .trv-parameters-area-footer {
            top: 0;
        }

        .trv-report-viewer .trv-parameters-area.preview .trv-parameters-area-content {
            top: 3em;
            bottom: 0;
        }

See Also

In this article