Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxPivotTable.AutoExpandGroups Property

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

Namespace: DevExpress.Blazor.PivotTable

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

NuGet Package: DevExpress.Blazor.PivotTable

#Declaration

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

#Property Value

Type Default Description
Boolean true

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.

#Implements

See Also