Skip to main content

DxDateEdit<T>.NullText Property

Specifies the Date Edit’s prompt text when the editor’s value is null.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll


public string NullText { get; set; }

Property Value

Type Description

A string value that specifies the prompt text.


If the Date Edit component has the nullable type, users can delete the editor value (set it to null).

You can also set the ClearButtonDisplayMode property to Auto to show the Clear button when the editor has a non-null value. Use the NullText property to specify the prompt text when the editor’s value is null.

Date Edit NullText

<DxDateEdit @bind-Date="@DateTimeValue"
            NullText="Select a date..." ></DxDateEdit>

@code {
    DateTime? DateTimeValue { get; set; } = new DateTime(2020, 01, 01);

Run Demo: Date Edit - Null Date Values and Placeholder

You can also specify a custom null value for the Date Edit component. This value can be used with both nullable and regular types. For more information, refer to NullValue.

See Also