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

Localization with IIF function

2 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jasna
Top achievements
Rank 1
Jasna asked on 10 Sep 2013, 07:26 PM
Hello,

I'm trying to localize fields from database to display different strings depending on the value. What I have is:
- example of the localized caption:   
Me.ColorNameTextBox.Value = My.Resources.MyProjectResources.ColorName
- or with data:   
Me.ColorValueTextBox.Value = "=IIf(Fields.Color =0, ""Blue"", IIf(Fields.Color=1,""Red"", ""Black""))"
What I would like to have is for ColorValueTextBox to have the localized values depending on the Fields.Color.
How can that be accomplished?

2 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 13 Sep 2013, 04:02 PM
Hi Jasna,

Please check if using a custom function in the expression, which return the localized string based on the passed key resolves your issue.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Jasna
Top achievements
Rank 1
answered on 19 Sep 2013, 01:03 PM
Hi Stef,

Custom functions do exactly what I asked for

Thank you,
Jasna
Tags
General Discussions
Asked by
Jasna
Top achievements
Rank 1
Answers by
Stef
Telerik team
Jasna
Top achievements
Rank 1
Share this question
or