Skip to main content
Tab

AutoCompleteBoxPropertiesBase.DataSecurityMode Property

Gets or sets whether users can enter and select values that do not exist in the Items collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(DataSecurityMode.Default)]
public DataSecurityMode DataSecurityMode { get; set; }

Property Value

Type Default Description
DataSecurityMode Default

An enumeration value.

Available values:

Name Description
Default

The data editor allows users to enter and select custom items.

Strict

The data editor does not allow users to enter and select custom items.

Remarks

Note

The DataSecurityMode properties of ComboBoxExtension and TokenBoxExtension have no effect.

Combo Box and Token Box editors allow users to enter and select values that do not exist in the bound item collection. Set an editor’s DataSecurityMode property to Strict to prevent users from setting the editor Value to a value not listed in the Items collection. Refer to the following topic for more information: Validation in List Editors.

<dx:ASPxComboBox ID="ASPxComboBox" runat="server" DataSecurityMode="Strict">
    <Items>
        <dx:ListEditItem Text="Item 1" Value="Item 1" />
        <dx:ListEditItem Text="Item 2" Value="Item 2" />
        <dx:ListEditItem Text="Item 3" Value="Item 3" />
    </Items>
</dx:ASPxComboBox>

If a combo box is in Strict security mode, DropDownStyle and EnableSynchronization properties are not in effect. If a token box is in Strict security mode, its EnableSynchronization property has no effect.

See Also