.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

CriteriaOptionsAttribute Class

Applied to a business class' string property that stores a filter criterion for a business object collection.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v20.1.dll

Declaration

[AttributeUsage(AttributeTargets.Property)]
public class CriteriaOptionsAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Property)>
Public Class CriteriaOptionsAttribute
    Inherits Attribute

Remarks

The type of the collection's objects must be specified by the class' Type property, whose name must be passed as the attribute's parameter.

You can use one of the following Property Editors to display a string property that uses this attribute. These Property Editors allow end-users to construct filter criteria via a special Filter Builder:

  • AdvancedCriteriaPropertyEditor - the default editor for WinForms applications with the static UseAdvancedFilterEditorControl property set to True or Default.
  • CriteriaPropertyEditor - the default editor for WinForms applications with the static UseAdvancedFilterEditorControl property set to False.
  • ExtendedCriteriaPropertyEditor
  • PopupCriteriaPropertyEditor
  • ASPxCriteriaPropertyEditor
  • ASPxPopupCriteriaPropertyEditor - the default editor for ASP.NET Web applications.

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

  • 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.ASPxPopupCriteriaPropertyEditor - in ASP.NET Web applications

You can specify another value via the Model Editor.

For an example of this attribute in use, refer to the How to: Use Criteria Property Editors topic.

Inheritance

See Also