Skip to main content
All docs
V25.1
  • PivotTablePersistentLayoutField Class

    Contains information about field layout settings.

    Namespace: DevExpress.Blazor.PivotTable

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

    NuGet Package: DevExpress.Blazor.PivotTable

    Declaration

    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 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:

    LayoutAutoSaving
    Fires each time the Pivot Table’s layout changes and allows you to save the layout.
    LayoutAutoLoading
    Fires 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.

    Inheritance

    Object
    PivotTablePersistentLayoutField
    See Also