Report Level Culture does not apply to Charts using databind

6 posts, 0 answers
  1. Yuan
    Yuan avatar
    3 posts
    Member since:
    Jan 2015

    Posted 20 Mar 2017 Link to this post

    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

  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 21 Mar 2017 Link to this post

    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
  3. Yuan
    Yuan avatar
    3 posts
    Member since:
    Jan 2015

    Posted 21 Mar 2017 in reply to Stef Link to this post

    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?

  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 23 Mar 2017 Link to this post

    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
  5. Yuan
    Yuan avatar
    3 posts
    Member since:
    Jan 2015

    Posted 23 Mar 2017 in reply to Stef Link to this post

    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.

  6. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 23 Mar 2017 Link to this post

    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
Back to Top