Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Blazor.PivotTable

    Declaration

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

    Property Value

    Type Default Description
    Boolean true

    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.

    Pivot Table - Drag Fields

    The following code disables field dragging in the Pivot Table:

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

    Implements

    See Also