blazor-devexpress-dot-blazor-dot-gridcustomdatasourceoptions.md
Specifies a filter criteria.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public CriteriaOperator FilterCriteria { get; }
| Type | Description |
|---|---|
| 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
public override async Task<IList> GetItemsAsync(GridCustomDataSourceItemsOptions options, CancellationToken cancellationToken) {
var filteredQuery = ApplyFiltering(options.FilterCriteria, _context.Orders);
See Also
GridCustomDataSourceOptions Class