blazor-devexpress-dot-blazor-dot-pivottable-1308a168.md
Contains information about field layout settings.
Namespace : DevExpress.Blazor.PivotTable
Assembly : DevExpress.Blazor.PivotTable.v25.2.dll
NuGet Package : DevExpress.Blazor.PivotTable
public class PivotTablePersistentLayoutField :
IEquatable<PivotTablePersistentLayoutField>
The Pivot Table allows you to save and restore its layout settings that a user can change in the UI. A PivotTablePersistentLayout object stores layout settings at the Pivot Table level. The PivotTablePersistentLayout.Fields collection stores layout settings for fields. Each collection item (a PivotTablePersistentLayoutField object) includes the following data:
| Saved information | Pivot Table field parameter | PivotTablePersistentLayoutField’s property |
|---|---|---|
| Datasource field name | DxPivotTableField.Field | LayoutField.Field |
| Area | DxPivotTableField.Area | LayoutField.Area |
| Area index | DxPivotTableField.AreaIndex | LayoutField.AreaIndex |
| Sort direction | DxPivotTableField.SortOrder | LayoutField.SortOrder |
Handle the following events to save and restore the Pivot Table layout automatically:
LayoutAutoSavingFires each time the Pivot Table’s layout changes and allows you to save the layout.LayoutAutoLoadingFires once the Pivot Table component is initialized and allows you to restore the saved layout.
To save and restore the Pivot Table layout on demand (for example, on a button click), call the following methods:
SaveLayout()Returns Pivot Table layout information so you can save it to a variable or a custom storage.LoadLayout(PivotTablePersistentLayout)Restores Pivot Table layout.
IEquatable<PivotTablePersistentLayoutField>
Object PivotTablePersistentLayoutField
See Also