Back to Devexpress

DateEditProperties.UseMaskBehavior Property

aspnet-devexpress-dot-web-dot-dateeditproperties-216d49a5.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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.

Online Demo

Masked Input

See Also

UseMaskBehavior

EditFormatString

EditFormat

Date Editor

DateEditProperties Class

DateEditProperties Members

DevExpress.Web Namespace