Hi,
Can I hide XamPivotGrid areas?
p.e. how could I hide RowArea?
Regards,
Dimitris
I try this code:
this.Loaded += (s, e) =>
{
xamPivotGrid.FiltersDropControl.Visibility = Visibility.Collapsed;
};
but in my PivotGrid, the FiltersDropControl is null and show error.how i hide filter in XamPivotDataSelector?
Thanks, Gomes
Hi
Most of properties in StringSettings are for XamPivotDataSelector control. And they should be set to that control
pivotDataSelector.StringSetting.DeferredUpdateLayoutCheckBoxLabel = PivotGridStrings.LBL_DeferredUpdateLayoutCheckBoxLabel;
The properties that have localization meaning for pivot grid are
pivotGrid.FiltersAreaSettings.EmptyHeaderAreaContent = ""; pivotGrid.RowsAreaSettings.EmptyHeaderAreaContent = ""; pivotGrid.ColumnsAreaSettings.EmptyHeaderAreaContent = ""; pivotGrid.MeasuresAreaSettings.EmptyHeaderAreaContent = ""; pivotGrid.StringSetting.CellTotal = "New Total ";
I did that and it is ok.
Now I am asking how to localize all pivotGrid texts in other languages.
As I tested it didn't work.
private void DataSource_ResultChanged(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
translatePivotCaptions();
}
private void translatePivotCaptions()
pivotGrid.StringSetting.EmptyMeasuresAreaText = PivotGridStrings.LBL_EmptyMeasuresAreaText;
pivotGrid.StringSetting.ColumnsAreaBackgroundText = PivotGridStrings.LBL_ColumnsAreaBackgroundText;
pivotGrid.StringSetting.CellTotal = PivotGridStrings.LBL_CellTotal;
pivotGrid.StringSetting.CubesDropDownInitialText = PivotGridStrings.LBL_CubesDropDownInitialText;
pivotGrid.StringSetting.DatabasesDropDownInitialText = PivotGridStrings.LBL_DatabasesDropDownInitialText;
pivotGrid.StringSetting.DeferredUpdateLayoutCheckBoxLabel = PivotGridStrings.LBL_DeferredUpdateLayoutCheckBoxLabel;
.........................
Did you set the code above in
pivotGrid.DataSource.ResultChanged
event handler. This should work for that situation
what about localize pivotGrid?