Back to Devexpress

DxPivotTable.AllowDragFields Property

blazor-devexpress-dot-blazor-dot-pivottable-dot-dxpivottable-6643f0ba.md

latest1.6 KB
Original Source

DxPivotTable.AllowDragFields Property

Specifies whether users can drag field headers and drop them onto other areas.

Namespace : DevExpress.Blazor.PivotTable

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

NuGet Package : DevExpress.Blazor.PivotTable

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true to enable field dragging; otherwise, false.

|

Remarks

The Blazor Pivot Table allows users to customize data layout by dragging field headers between areas: Rows, Columns, Data, Filter. This capability helps users view data from different perspectives without the need for code modifications.

The following code disables field dragging in the Pivot Table:

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

Implements

AllowDragFields

See Also

DxPivotTable Class

DxPivotTable Members

DevExpress.Blazor.PivotTable Namespace