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.v18.1.dll

Declaration

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

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:

  • CriteriaPropertyEditor - used by default in Windows Forms applications,
  • ExtendedCriteriaPropertyEditor
  • PopupCriteriaPropertyEditor,
  • ASPxCriteriaPropertyEditor,
  • ASPxPopupCriteriaPropertyEditor - used by default in 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,
  • 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

Object
Attribute
CriteriaOptionsAttribute

See Also