Skip to main content
All docs
V25.2
  • DxFilterBuilder.GroupOperatorTypes Property

    Specifies which logical operators appear in the UI.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [Parameter]
    public FilterBuilderGroupOperatorType GroupOperatorTypes { get; set; }

    Property Value

    Type Description
    FilterBuilderGroupOperatorType

    A collection of FilterBuilderGroupOperatorType values.

    Available values:

    Name Description
    And

    Combines all filter conditions with the AND logical operator.

    Or

    Combines all filter conditions with the OR logical operator.

    NotAnd

    Combines all filter conditions with the AND operator, and then applies NOT to the result.

    NotOr

    Combines all filter conditions with the OR operator, and then applies NOT to the result.

    Remarks

    The DevExpress Blazor Filter Builder allows users to combine filter conditions with the following logical operators:

    And
    Combines all filter conditions with the AND logical operator.
    Or
    Combines all filter conditions with the OR logical operator.
    NotAnd
    Combines all filter conditions with the AND operator, and then applies NOT to the result.
    NotOr
    Combines all filter conditions with the OR operator, and then applies NOT to the result.

    Use the GroupOperatorType property to limit the list of available logical operators.

    Filter Builder - Customize Group Operators

    <DxFilterBuilder GroupOperatorTypes="@(FilterBuilderGroupOperatorType.And |
                                           FilterBuilderGroupOperatorType.Or)">
        <Fields>
            @* ... *@
            <DxFilterBuilderField FieldName="UnitPrice" Caption="Unit Price" Type="@typeof(int)" />
            <DxFilterBuilderField FieldName="UnitsInStock" Caption="Units in Stock" Type="@typeof(int)" />
            <DxFilterBuilderField FieldName="Discontinued" Type="@typeof(bool)" />
        </Fields>
    </DxFilterBuilder>
    

    Run Demo: Filter Builder - Operator Customization

    See Also