This is a migrated thread and some comments may be shown as answers.

Report Level Culture does not apply to Charts using databind

5 Answers 132 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Yuan
Top achievements
Rank 1
Yuan asked on 20 Mar 2017, 08:21 PM

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

Sort by
0
Stef
Telerik team
answered on 21 Mar 2017, 12:57 PM
Hello Yuan,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Yuan
Top achievements
Rank 1
answered on 21 Mar 2017, 01:27 PM

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?

0
Stef
Telerik team
answered on 23 Mar 2017, 12:58 PM
Hello Yuan,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Yuan
Top achievements
Rank 1
answered on 23 Mar 2017, 02:46 PM

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.

0
Stef
Telerik team
answered on 23 Mar 2017, 03:03 PM
Hello Yuan,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Yuan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Yuan
Top achievements
Rank 1
Share this question
or