Back to Devexpress

CriteriaOptionsAttribute Class

expressappframework-devexpress-dot-expressapp-dot-editors-c163893b.md

latest3.0 KB
Original Source

CriteriaOptionsAttribute Class

Indicates that the target string property stores a filter criterion.

Namespace : DevExpress.ExpressApp.Editors

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[AttributeUsage(AttributeTargets.Property)]
public class CriteriaOptionsAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Property)>
Public Class CriteriaOptionsAttribute
    Inherits 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.FilterPropertyEditorIn ASP.NET Core Blazor applicationsDevExpress.ExpressApp.Win.Editors.CriteriaPropertyEditorIn Windows Forms applications with UseAdvancedFilterEditorControl = DefaultBoolean.FalseDevExpress.ExpressApp.Win.Editors.AdvancedCriteriaPropertyEditorIn Windows Forms applications with UseAdvancedFilterEditorControl = DefaultBoolean.True or DefaultBoolean.Default

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

CriteriaOptionsAttribute Members

DevExpress.ExpressApp.Editors Namespace