LookupEditorModeAttribute Class
Specifies the mode of the target business class property’s Lookup Property Editor.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
By default, an Object type business class property is displayed via a Lookup Property Editor. The drop-down frame of this Property Editor contains a List View that displays all existing objects of the specified type. In addition, this frame can contain a Search function, so that end-users can easily find a particular object in that List View. Apply the LookupEditorMode attribute to a property, to specify whether the Lookup Editor should contain the Search function.
using DevExpress.Persistent.Base;
// ...
public class Contact : Person, IMapsMarker {
// ...
[LookupEditorMode(LookupEditorMode.AllItemsWithSearch)]
public Department Department {
// ...
See the attribute’s LookupEditorModeAttribute.Mode property description to learn about the available values you can pass as the mode parameter.
The value of the LookupEditorMode atribute’s mode parameter is set for the IModelCommonMemberViewItem.LookupEditorMode property of the Application Model‘s BOModel | <Class> | OwnMembers | <Member> node. You can set the required value for this property directly in the Application Model via the Model Editor.