Skip to main content
Tab

DateEditProperties.AllowNull Property

Gets or sets a value that specifies whether the date editor allows null values to be entered.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool AllowNull { get; set; }

Property Value

Type Default Description
Boolean true

true if null values can be entered into the editor, otherwise, false.

Remarks

If the AllowNull property is set to true, end-users can enter null values into the date editor by clearing its text or clicking the ‘Clear’ button. In this case, the editor’s ASPxDateEdit.Value property is equal to null.

If the AllowNull property is set to false, the ‘Clear’ button isn’t displayed within the dropdown, and the editor doesn’t accept null values.

See Also