How can we localize the below menu from UI side. It is related to report viewer
1 Answer, 1 is accepted
0
Neli
Telerik team
answered on 03 Aug 2021, 02:22 PM
Hello Amol,
Basically, the recommended approach is by setting the extension description in the configuration file of the REST service project. For example, for .NET Core project, you can use the following example:
As a workaround, you may test customizing the export formats descriptions in the ReportsController. You will need to add an override of the GetdocumentInfo. For example the following code will change the CSV description:
publicoverride IActionResult GetDocumentInfo(string clientID, string instanceID, string documentID)
{
var result = (JsonResult)base.GetDocumentInfo(clientID, instanceID, documentID);
var resultValue = result.Value;
var prop = resultValue.GetType().GetProperty("RenderingExtensions");
var extensionInfos = (ExtensionInfo[])prop.GetValue(resultValue);
if (extensionInfos != null)
{
extensionInfos[0].LocalizedName = "My Name";
}
return result;
}
Please, give these options a try and let me know how it goes. If they do not work for you, please, provide us more details about your scenario and project.
Regards,
Neli
Progress Telerik
Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you
up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.