Skip to content

LookupEditorBaseAttribute.AllowClear property

Whether the selection can be cleared. When it is not set, the editor allows it when it has a placeholder, e.g. an empty item text, and not otherwise. It is a plain boolean, as a nullable one is not a valid argument of an attribute, and an option that is not set is told apart by not being in the options.

public bool AllowClear { get; set; }

See Also