Skip to main content
All docs
V24.2

DxDateRangePicker<T>.NullValue Property

Specifies a null value for the Date Range Picker component.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public DateTime NullValue { get; set; }

Property Value

Type Description
DateTime

A DateTime object that specifies a null value.

Remarks

You can specify a custom null value for the Date Range Picker component. This value can be used with nullable and regular DateTime types.

If the editor is bound to a nullable type, use the NullValue property to override the editor’s null value. Each time a user clears the editor’s input, the editor’s value is set to NullValue. If the NullValue is not specified, the editor’s value is set to NULL.

If the editor is bound to a regular (non-nullable) type, specify the NullValue property to allow users to clear the editor’s content.

Additionally, use the NullText property to specify the prompt text displayed when the editor is set to a null value. You can also set the ClearButtonDisplayMode to Auto to display the Clear button in the editor when there is a value in it.

See Also