Localization and custom columns names

4 posts, 0 answers
  1. Joao Paulo
    Joao Paulo avatar
    6 posts
    Member since:
    Dec 2012

    Posted 10 Jan 2013 Link to this post

    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.
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 10 Jan 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Joao Paulo
    Joao Paulo avatar
    6 posts
    Member since:
    Dec 2012

    Posted 10 Jan 2013 Link to this post

    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?



  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 10 Jan 2013 Link to this post

    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.

Back to Top