DxTextEditSettings.NullText Property
Specifies the editor’s prompt text when the editor’s value is null
.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public string NullText { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | null | The prompt text. |
Remarks
Use the NullText
property to display prompt text in the editor when its value is null
.
<DxGrid Data="@products"
ShowFilterRow="true"
EditMode="GridEditMode.EditRow">
<Columns>
<DxGridCommandColumn />
<DxGridDataColumn FieldName="ProductID" >
<EditSettings>
<DxSpinEditSettings ShowSpinButtons="false" ReadOnly="true" NullText="Type the ID" />
</EditSettings>
</DxGridDataColumn>
<DxGridDataColumn FieldName="ProductName" />
<DxGridDataColumn FieldName="UnitPrice" />
<DxGridDataColumn FieldName="UnitsInOrder" />
</Columns>
</DxGrid>
To change prompt text at runtime, use the ITextEditSettings.NullText property instead.
Implements
See Also