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

Localization and custom columns names

3 Answers 155 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Joao Paulo
Top achievements
Rank 1
Joao Paulo asked on 10 Jan 2013, 12:20 PM
Hi,

I'm using PivotGrid and it's a amazing control.
Now, I need to localize PivotGrid and PivotFieldList to "pt-BR".
I've done this with GridView with LocalizationManager, but I didn't find a table with key-description pair in PivotGrid documentation as I found in GridView documentation.

Another point is that I don't know how to display a user friendly name to my columns.
In both, PivotGrid and PivotFieldList, they show only the original property name of my object.

Regards, JP.

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 10 Jan 2013, 01:16 PM
Hello Joao Paulo,

With the current release of RadPivotGrid you are not able to set localization. This feature is in our to-do list and it should be ready for the official release (in the end of February). We are sorry for the inconvenience caused.
For your next question - you can set the CustomName property on your group/aggregate description. Very soon you'll be able to use DataAnnotations as well.

Thanks for choosing RadPivotGrid. Feel free to contact us if you have any suggestions or concerns.

Regards,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joao Paulo
Top achievements
Rank 1
answered on 10 Jan 2013, 02:04 PM
Hi Rosen,

Thanks for replying.

CustomName property worked for RadPivotGrid.
But, I'm using RadPivotFieldList together.
When user remove one field and add again, it comes without CustomName.

Can you help me?



0
Rosen Vladimirov
Telerik team
answered on 10 Jan 2013, 02:26 PM
Hello Joao Paulo,

This can be achieved by using DataAnnotations. Here's a simple code that is using DataAnnotations:
[Display(Name="CustomProductName")]
public string Product { get; set; }

You can check attached image to see the result of this code.  I would suggest you to wait for our next internal build (you can download it under your account) and use it in your application.

We are sorry for the caused inconvenience.

Greetings,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PivotGrid
Asked by
Joao Paulo
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Joao Paulo
Top achievements
Rank 1
Share this question
or