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

PivotGrid Localization of months

4 Answers 60 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
B
Top achievements
Rank 2
B asked on 28 Jan 2016, 03:01 PM

Hi,

What are the keys for months localization like January, etc. and the (blank) item?

Regards,

Bayram

 

4 Answers, 1 is accepted

Sort by
0
B
Top achievements
Rank 2
answered on 28 Jan 2016, 03:37 PM

I managed to work around this by explictly saying:

provider.Culture = new CultureInfo("nl-NL");

But why is that necesary? Shouldn't it use what I specified in the App constructor: 

System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("nl-NL");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("nl-NL");

0
Kalin
Telerik team
answered on 29 Jan 2016, 09:29 AM
Hi Bayram,

The months names are coming from the system setting of current UI culture. Regarding the other keys you can check the following article from our help documentation:
http://docs.telerik.com/devtools/silverlight/controls/radpivotgrid/features/localization

As well as the online Silverlight example:
http://demos.telerik.com/silverlight/#PivotGrid/Localization

As for the empty value - this string is not localized. However you can easily change it through the EmptyValueText property of the control:
<pivot:RadPivotGrid  x:Name="radPivotGrid" DataProvider="{StaticResource DataProvider}" EmptyValueText="-" />

Hope this helps.

Regards,
Kalin
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
0
B
Top achievements
Rank 2
answered on 29 Jan 2016, 12:19 PM

I mean the (blank) as in row or column names for example:

Coffee 12

Beer 23

Pizza 19

(blank) 42

How do I make the (blank) rowheader say something different?

 

0
Kalin
Telerik team
answered on 02 Feb 2016, 09:07 AM
Hello Bayram,

You could change the text by using custom HeaderTemplateSelector. You can apply custom template with custom text whenever the value of the header is (blank).

Hope this helps.

Regards,
Kalin
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
PivotGrid
Asked by
B
Top achievements
Rank 2
Answers by
B
Top achievements
Rank 2
Kalin
Telerik team
Share this question
or