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

Binding "Culture" from a DataSource Property

1 Answer 200 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kamesh
Top achievements
Rank 1
Kamesh asked on 08 Apr 2016, 05:17 PM

Hi,

I am evaluating Telerik Reports for our project requirements. I would like to know whether it is possible to set the Culture value of the report (en-US, es-MX, etc.) from a DataSource property. The culture information is returned as part of the data source and we are trying to build the report based on the value returned from the DB during run-time. I tried to set the Culture value in the 2 ways shown below, but both didn't work.

1) this.Bindings.Add(new Telerik.Reporting.Binding("Culture", "= SampleReport.getCulture(ReportItem.DataObject.RawData)"));

2) this.Culture = new System.Globalization.CultureInfo("= {Fields.[CultureInfo]}");

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 13 Apr 2016, 10:53 AM
Hello ,

Our recommendation is to add a report parameter that will store the culture information passed from the data source. You can then add the binding to the report as following:

Property path: Culture
Expression: = Parameters.Culture.Value

You can find attached a sample report demonstrating this approach. If the suggested approach is not suitable for your scenario you can open a support ticket and provide more details about it (attach a sample project together with test data).


Regards,
Katia
Telerik
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
General Discussions
Asked by
Kamesh
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or