Back to Devexpress

PivotTablePersistentLayoutField Class

blazor-devexpress-dot-blazor-dot-pivottable-1308a168.md

latest3.5 KB
Original Source

PivotTablePersistentLayoutField Class

Contains information about field layout settings.

Namespace : DevExpress.Blazor.PivotTable

Assembly : DevExpress.Blazor.PivotTable.v25.2.dll

NuGet Package : DevExpress.Blazor.PivotTable

Declaration

csharp
public class PivotTablePersistentLayoutField :
    IEquatable<PivotTablePersistentLayoutField>

Remarks

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 informationPivot Table field parameterPivotTablePersistentLayoutField’s property
Datasource field nameDxPivotTableField.FieldLayoutField.Field
AreaDxPivotTableField.AreaLayoutField.Area
Area indexDxPivotTableField.AreaIndexLayoutField.AreaIndex
Sort directionDxPivotTableField.SortOrderLayoutField.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.

Implements

IEquatable<PivotTablePersistentLayoutField>

Inheritance

Object PivotTablePersistentLayoutField

See Also

PivotTablePersistentLayoutField Members

DevExpress.Blazor.PivotTable Namespace