Back to Devexpress

GridCustomDataSourceOptions.FilterCriteria Property

blazor-devexpress-dot-blazor-dot-gridcustomdatasourceoptions.md

latest1.9 KB
Original Source

GridCustomDataSourceOptions.FilterCriteria Property

Specifies a filter criteria.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public CriteriaOperator FilterCriteria { get; }

Property Value

TypeDescription
CriteriaOperator

A CriteriaOperator object that contains a filter criteria.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterCriteria property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

blazor-grid-custom-datasource-with-ef-core/CS/CustomDataSource/Services/OrdersDataSource.cs#L28

csharp
public override async Task<IList> GetItemsAsync(GridCustomDataSourceItemsOptions options, CancellationToken cancellationToken) {
    var filteredQuery = ApplyFiltering(options.FilterCriteria, _context.Orders);

See Also

GridCustomDataSourceOptions Class

GridCustomDataSourceOptions Members

DevExpress.Blazor Namespace