Tab
A newer version of this page is available. Switch to the current version.

DateEditProperties.UseMaskBehavior Property

Gets or sets a value that specifies whether the mask behavior is applied to the date editor input.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public bool UseMaskBehavior { get; set; }
<DefaultValue(False)>
Public Property UseMaskBehavior As Boolean

Property Value

Type Default Description
Boolean

false

true if the mask behavior is enabled for the editor input; otherwise, false.

Remarks

The UseMaskBehavior property controls whether masked input is enabled within a date editor. If the UseMaskBehavior property is set to true, the pattern defined via the ASPxDateEdit.EditFormatString property serves as a mask. Note that the ASPxDateEdit.EditFormatString property is in effect if the ASPxDateEdit.EditFormat property is set to EditFormat.Custom.

NOTE

The UseMaskBehavior property synchronizes its value with the editor's ASPxDateEdit.UseMaskBehavior property.

Examples

The following section of the Client-side Masked Input online demo illustrates how to set the mask for the ASPxDateEdit.

<dxe:ASPxDateEdit ID="dateEdit" runat="server" Width="150" EditFormat="Custom" 
UseMaskBehavior="true" />
See Also