Skip to main content

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

DxInputDataEditorBase<T>.NullText Property

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

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public string NullText { get; set; }

#Property Value

Type Description
String

A string value that specifies the prompt text.

#Remarks

Use the NullText property to display the prompt text in the editor when its value is null.

You can also set the editor’s ClearButtonDisplayMode property to Auto to show the Clear button when the editor has a non-null value. Users can click this button to clear the editor’s value (set it to null).

Razor
<DxMaskedInput @bind-Value="Value"
               Mask="@NumericMask.Currency"
               ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto"
               NullText="Specify a price..." >
</DxMaskedInput>

@code {
    double? Value { get; set; } = 123.45;
}

See Also