EnumEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that the target property should use a "Enum" editor.

[AttributeUsage(AttributeTargets.All)]
public class EnumEditorAttribute : CustomEditorAttribute

Public Members

name description
EnumEditorAttribute() Initializes a new instance of the EnumEditorAttribute class.
AllowClear { get; set; } Gets or sets a value indicating whether to allow clearing.
Delimited { get; set; } Use comma separated string instead of an array to serialize values.
MinimumResultsForSearch { get; set; } The minimum number of results that must be initially (after opening the dropdown for the first time) populated in order to keep the search field. This is useful for cases where local data is used with just a few results, in which case the search box is not very useful and wastes screen space. The option can be set to a negative value to permanently hide the search field.
Multiple { get; set; } Allow multiple selection. Make sure your field is a List. You may also set CommaSeparated to use a string field.
const Key Editor type key

See Also