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:");
}
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.
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
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.