Skip to main content
A newer version of this page is available. .
Tab

ASPxDateEdit.DateOnError Property

Gets or sets a value that specifies how the date editor responds to an invalid date being entered by an end user.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(DateOnError.Undo)]
public DateOnError DateOnError { get; set; }

Property Value

Type Default Description
DateOnError **Undo**

A DateOnError value specifying how to respond to an invalid date value being entered.

Available values:

Name Description
Undo

An invalid date is replaced with the previously validated date.

Null

An invalid date is replaced with the null value.

Today

An invalid date is replaced with the current date.

Remarks

This property is a wrapper of the DateEditProperties.DateOnError property.

See Also