Report Viewer Localization - Page of / File extension

1 Answer 14 Views
Report Viewer - MVC
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Stefan asked on 16 Jun 2025, 12:59 PM

We have a ASP.NET MVC application.

We translated the report viewer as per info provided here to german: Localization of the HTML5 ReportViewer Explained - Telerik Reporting

Now the viewer still shows "Page # of #", and also the dropdown for export still shows english file extensions:

How do we translate these elements as well?

 

Kind regards.

1 Answer, 1 is accepted

Sort by
1
Accepted
Ivet
Telerik team
answered on 19 Jun 2025, 10:55 AM

Hi Stefan,

Thank you for reaching out.

Indeed, the 'Page' and 'of' words cannot be localized as they are hardcoded in the template:

This would be improved within a future release. The only workaround I can think of is to change the template and reference it from a local path:

The options in the Export menu may be changed in the extensions Element of the Telerik Reporting configuration. They don't come from the string resources file. For example, with the following setting from the above article, the PDF will be listed with the title/description "PDF-Beschreibung":

"telerikReporting": {
    "extensions": [
        {
            "name": "PDF",
            "description":  "PDF-Beschreibung"
        }
    ]
}

I hope the sample will help. Let me know if you have other questions.

Regards,
Ivet
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Stefan
Top achievements
Rank 2
Iron
Iron
Iron
commented on 08 Jul 2025, 07:17 AM

Hi Ivet,

that worked. Thank you. :)

 

Is there a way, to have different extension descriptions at runtime? The reason I'm asking is, that we can toggle the language in our application, and would like to have different (translated) descriptions for each language.

Ivet
Telerik team
commented on 10 Jul 2025, 02:25 PM

Hi Stefan,

You can achieve dynamic localization of export extension descriptions at runtime based on the user's selected language. While the default approach is to set these descriptions statically in the configuration file, it is possible to update them dynamically with a small customization.

By overriding the GetDocumentInfo method in your custom ReportsController, you can modify the export format descriptions at runtime. This allows you to detect the current language and update the descriptions accordingly.

Tags
Report Viewer - MVC
Asked by
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Ivet
Telerik team
Share this question
or