Back to Devexpress

DxPivotTable.AutoExpandGroups Property

blazor-devexpress-dot-blazor-dot-pivottable-dot-dxpivottable-d7078b9a.md

latest1.8 KB
Original Source

DxPivotTable.AutoExpandGroups Property

Specifies whether to automatically expand all groups when the Pivot Table loads data.

Namespace : DevExpress.Blazor.PivotTable

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

NuGet Package : DevExpress.Blazor.PivotTable

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool AutoExpandGroups { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to expand all groups; otherwise, false.

|

Remarks

The Blazor Pivot Table automatically groups data data if row or column areas include multiple fields. All groups expand on data load. You can set the AutoExpandGroups property to false to collapse groups.

razor
<DxPivotTable Data="SalesData"
              AutoExpandGroups="false">
    <Fields>
        @*...*@
    </Fields>
</DxPivotTable>

You can also use the ExpandAllGroups or CollapseAllGroups methods to expand/collapse all groups in the Pivot Table component.

YouTube video

Implements

AutoExpandGroups

See Also

DxPivotTable Class

DxPivotTable Members

DevExpress.Blazor.PivotTable Namespace