Skip to main content
.NET 6.0+

CriteriaOptionsAttribute Class

Indicates that the target string property stores a filter criterion.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[AttributeUsage(AttributeTargets.Property)]
public class CriteriaOptionsAttribute :
    Attribute

Remarks

To use this attribute, add a property of the System.Type type to your business class. This property should return a type whose objects are filtered by the filter criterion. Pass this property’s name to the attribute’s objectTypeMemberName parameter.

For more information about the use of CriteriaOptionsAttribute, refer to the following topics:

This attribute sets the PropertyEditorType property of the Application Model’s IModelMember node to the following values:

DevExpress.ExpressApp.Blazor.Editors.FilterPropertyEditor
In ASP.NET Core Blazor applications
DevExpress.ExpressApp.Win.Editors.CriteriaPropertyEditor
In Windows Forms applications with UseAdvancedFilterEditorControl = DefaultBoolean.False
DevExpress.ExpressApp.Win.Editors.AdvancedCriteriaPropertyEditor
In Windows Forms applications with UseAdvancedFilterEditorControl = DefaultBoolean.True or DefaultBoolean.Default
DevExpress.ExpressApp.Web.Editors.ASPx.ASPxCriteriaPropertyEditor
In ASP.NET Web Forms applications

You can specify another value in the Model Editor.

For additional information about Property Editors for filter properties, refer to the following help topic: Criteria Properties.

Inheritance

Object
Attribute
CriteriaOptionsAttribute
See Also