Back to Devexpress

DxInputDataEditorBase<T>.NullText Property

blazor-devexpress-dot-blazor-dot-base-dot-dxinputdataeditorbase-1-fe96c634.md

latest1.6 KB
Original Source

DxInputDataEditorBase<T>.NullText Property

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

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string NullText { get; set; }

Property Value

TypeDescription
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

DxInputDataEditorBase<T> Class

DxInputDataEditorBase<T> Members

DevExpress.Blazor.Base Namespace