Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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