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

[Solved] How to Bind ResultFormatString to String Resource?

3 Answers 259 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sandi Markon
Top achievements
Rank 1
Sandi Markon asked on 22 Sep 2010, 12:26 PM
Hello,

I'd like to bind ResultFormatString to string resource which contains localized format string. 

Now:
<telerik:GridViewDataColumn.AggregateFunctions>
     <telerik:CountFunction ResultFormatString="{}Count: {0}" />
</telerik:GridViewDataColumn.AggregateFunctions>

to something like this (does not work for me):
<telerik:GridViewDataColumn.AggregateFunctions>
     <telerik:CountFunction ResultFormatString="{Binding CommonResStrings.Count, Source={StaticResource Resources}}" />
</telerik:GridViewDataColumn.AggregateFunctions>

Is this possible? How?

Best regards!

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Sep 2010, 01:07 PM
Hi Sandi Markon,

You may take a look at this forum thread for a reference.
 

All the best,
Maya
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Sandi Markon
Top achievements
Rank 1
answered on 22 Sep 2010, 01:18 PM
Thanks, but does not work with GridViewDataColumn.AggregateFunctions ResultFormatString! I'd like to localize result format string from string resource not static from XAML! Any idea how to?
0
Maya
Telerik team
answered on 22 Sep 2010, 02:26 PM
Hello Sandi Markon,

In case you have specific Resource file containing the strings for localization, you may use a LocalizationManager and set its DefaultResourceManager  Property to that particular file. You may find more information in this forum thread
If this does not correspond to your exact scenario, I would need a bit more details about your project so that I could provide you with more appropriate solution and sample application, if needed.

Sincerely yours,
Maya
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Sandi Markon
Top achievements
Rank 1
Answers by
Maya
Telerik team
Sandi Markon
Top achievements
Rank 1
Share this question
or