Completed
Last Updated: 28 Jul 2016 06:19 by ADMIN
ADMIN
George
Created on: 12 Nov 2014 13:07
Category: PivotGrid
Type: Feature Request
2
ADD. RadPivotGrid - add localization support for the screentips
Currently the words: Row, Column and Value are not localizable in the ScreenTip.

Currently they can be localized as follows:

void radPivotGrid1_ScreenTipNeeded(object sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
{
    PivotCellElement cell = e.Item as PivotCellElement;
    if (cell == null || cell.ScreenTip == null)
    {
        return;
    }
 
    RadOffice2007ScreenTipElement screenTip = cell.ScreenTip asRadOffice2007ScreenTipElement;
    screenTip.MainTextLabel.Text = screenTip.MainTextLabel.Text
        .Replace("Value:", "ChangedValue:")
        .Replace("Row:", "ChangedRow:")
        .Replace("Column:", "ReplacedColumn:");
}
3 comments
ADMIN
Ralitsa
Posted on: 28 Jul 2016 06:19
Hi Alex, 

Already has added localized string which changes the title 'Aggregate of Column'. Please refer to the code snippet below how to achieve it: 
case PivotStringId.PivotAggregateP0ofP1: return "{0} of of {1}";

I have also attached an image (PivotGridLocalizationProvider_PivotAggregateP0ofP1.png) demonstrating how the screen tip looks like. 
Alex Dybenko
Posted on: 27 Jul 2016 15:13
pls do not forget to localize "of" of the screentip header, e.g. Sum of Freight, i found this is a screenTip.TipItems(0).Text

Alex
ADMIN
Ralitsa
Posted on: 19 Jul 2016 10:01
In order to localize the screentip, you need to set the value of following localization strings: 

public class ScreenTipPivotGridLocalizationProvider : PivotGridLocalizationProvider
{
    public override string GetLocalizedString(string id)
    {
        switch (id)
        {
            case PivotStringId.CellScreenTipValue:
                return "Value";
            case PivotStringId.CellScreenTipRow:
                return "Row";
            case PivotStringId.CellScreenTipColumn:
                return "Column";
        }

        return base.GetLocalizedString(id);
    }
}

The improvement will be introduced in Telerik UI for WinForms R3 2016 version.