Back to Devexpress

DxFilterBuilder.GroupOperatorTypes Property

blazor-devexpress-dot-blazor-dot-dxfilterbuilder-044653e9.md

latest2.8 KB
Original Source

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

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

Property Value

TypeDescription
FilterBuilderGroupOperatorType

A collection of FilterBuilderGroupOperatorType values.

|

Available values:

NameDescription
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:

AndCombines all filter conditions with the AND logical operator.OrCombines all filter conditions with the OR logical operator.NotAndCombines all filter conditions with the AND operator, and then applies NOT to the result.NotOrCombines 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.

razor
<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

DxFilterBuilder Class

DxFilterBuilder Members

DevExpress.Blazor Namespace