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

Change PivotGrid language via ResourceManager

3 Answers 161 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 25 Nov 2013, 10:13 AM
Hi.
I'd like to know is there any way to change two labels in pivotGrid (actually i found site with resource names and changed that to polish, but some of them are still in english version):

http://puu.sh/5sKXm.png
I need to change Grand Total and I need to change month names (from eng to pl) when user filter data using DateTime.

Thanks in advance!

@EDIT
One more question ;) Is there any way to save user settings and restore them whenever user open window with pivotgrid? I'd like to save somewhere Filter, row, column labels, so it will be everything from there : http://puu.sh/5sL2H.png
Don't need help for @EDIT - found that: http://www.telerik.com/community/forums/wpf/pivotgrid/saving-the-radpivotgrid-localdatasourceprovider.aspx and works great ;)

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 25 Nov 2013, 03:10 PM
Hello Pawel,

You can check this help article, which describes almost all keys used to localize RadPivotGrid. The key for GrandTotal is Pivot_GrandTotal. Unfortunately you are not able to localize the name of the months - this issue is still in our to do list. The only way to use your own names is to create your own implementation of PropertyGroupDescriptionBase and set the names of the months in it.

As for your second question - the forum you have found is not up to date. The project in it contains a workaround for the missing serialization feature. With our 2013 Q2 release we have provided an easier way to achieve this. I suggest you to take a look at the following resources:
 - Serialize LocalDataSourceProvider Settings help article
 - Persist LocalDataSourceProvider Settings via RadPersistenceFramework - help article

The same articles are available within OLAP provides section of our online help. You can also take a look at our samples in XAML SDK.

Hopefully this helps. Feel free to contact us in case you have any problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Кустутинов
Top achievements
Rank 1
answered on 27 Nov 2014, 01:19 PM
Hi, You decide on the issue by transferring the names of the month and quarter? (April, May and ..., Q1, Q2, ...)

thanks.
0
Polya
Telerik team
answered on 01 Dec 2014, 12:43 PM
Hello Кустутинов,

With our Q2 release of Telerik UI for WPF we included localization of month names and UI culture support for LocalDataSourceProvider.
Setting the LocalDataSourceProvider.Culture property to any desired culture will now apply it to month names, how numeric values are presented ( , or . ), how weeks are calculated.
<pivot:LocalDataSourceProvider x:Key="DataProvider" Culture="pl-PL">
    <pivot:LocalDataSourceProvider.ItemsSource>
        <testData:OrdersSource />
    </pivot:LocalDataSourceProvider.ItemsSource>
    <pivot:LocalDataSourceProvider.RowGroupDescriptions>
        <pivot:PropertyGroupDescription PropertyName="Product" />
    </pivot:LocalDataSourceProvider.RowGroupDescriptions>
    <pivot:LocalDataSourceProvider.AggregateDescriptions>
        <pivot:PropertyAggregateDescription PropertyName="Quantity" />
    </pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>

Hopefully this helps.

Regards,
Polya
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PivotGrid
Asked by
Paweł
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Кустутинов
Top achievements
Rank 1
Polya
Telerik team
Share this question
or