Hello,
I am using standalone report designer and I use this line of code to toggle culture based on parameter
Culture = IIf(Parameters.Language.Value = "en","en-US","fr-CA") in databinding
This works well for numbers currencies, and percentages on tabs, cross tabs etc but NOT charts.
Does charting library have a different initialization process? It seems that once chart is created, the culture remains static.
P.S. Culture of the Chart is (Default), setting value is not in bold font.
Please advise
Thanks
5 Answers, 1 is accepted
We logged the issue for improvement in our system. Your Telerik points are updated to thank you for bringing the issue to our attention.
If you set the Graph.Culture directly, the selected culture will be applied. The binding is applied at later point when the processing is started and only data points' labels will be affected by the set culture.
Until there is a fix, you will have to change the Graph.Culture property directly in the PropertyGrid, or in an application you can set the current thread's culture before creating the viewer that displays reports - Report Globalization.
Regards,
Stef
Telerik by Progress
Hi Stef, Thanks for the reply.
Our team use Standalone Designer to develop reports and trdp files are deployed directly to the WebAPI application for rendering. Is there a workaround in the WebAPI project we can do for this case until the issue is addressed in future releases?
We just released an internal build including the fix.
Latest internal builds are available for download from your Telerik account - Downloads - Reporting (Version: 11.0.17.222) - Latest Internal Build.
In general, formats will change in the report if you change the current thread's culture on the server machine on a request for a report. For example, check this. On a development machine, this would mean changing the machine's culture settings.
Regards,
Stef
Telerik by Progress
Hello Stef,
Thanks for the quick turnaround. Unfortunately I just tried the internal build and it did not work for me.
I will post some screenshots for your information.
Thanks.
I should admit that I overlooked the release notes and mistaken your logged issue with another one. The fix is not available yet.
Apologies for the caused inconvenience.
You can use the suggested workaround to set the current thread's culture on request (see the code in Global.asax) in the example attached to this forum post.
Regards,
Stef
Telerik by Progress