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

ASPxTimeEdit.AllowNull Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
Boolean **true**

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

Remarks

If the AllowNull property is set to true, end-users can enter a null value into the time editor by clearing its text. In this case, the editor’s ASPxTimeEdit.Value property equals null.

When the editor’s value is null and the editor is not focused, a prompt text can be displayed by the editor. Use the ASPxTimeEdit.NullText property to specify the prompt text.

Note

This property is a wrapper of the TimeEditProperties.AllowNull property.

See Also