ASPxGridSearchPanelSettings.EditorNullTextDisplayMode Property
Specifies when the null text is visible in the grid’s search panel.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(NullTextDisplayMode.Unfocused)]
public NullTextDisplayMode EditorNullTextDisplayMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
NullTextDisplayMode | Unfocused | The null text display mode. |
Available values:
Name | Description |
---|---|
Unfocused | The null text is displayed when the editor is unfocused. |
UnfocusedAndFocused | The null text is displayed when the editor is focused or unfocused. |
Remarks
The null text is a prompt text displayed in an editor when it is empty and unfocused. Use the NullTextDisplayMode property to specifies whether the null text is also displayed in the editor when it is focused.
Use the SearchPanelEditorNullText property to specify the editor’s null text.
Example
Web Forms (in markup):
<dx:ASPxGridView ID="Grid" runat="server" >
...
<SettingsSearchPanel Visible="true" EditorNullTextDisplayMode="UnfocusedAndFocused" />
<SettingsText SearchPanelEditorNullText="Custom text" />
</dx:ASPxGridView>
Web Forms (in code):
ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsSearchPanel.Visible = true;
grid1.SettingsSearchPanel.EditorNullTextDisplayMode = NullTextDisplayMode.UnfocusedAndFocused;
grid1.SettingsText.SearchPanelEditorNullText="Custom text";
MVC:
@Html.DevExpress().GridView(settings => {
settings.Name = "grid";
settings.SettingsSearchPanel.Visible = true;
settings.SettingsSearchPanel.EditorNullTextDisplayMode = NullTextDisplayMode.UnfocusedAndFocused;
settings.SettingsText.SearchPanelEditorNullText="Custom text";
...
}).Bind(Model).GetHtml()
Concept
GridView:
Web Forms: Search Panel
MVC: Search Panel
CardView:
VerticalGrid:
TreeList:
Online Demos
GridView:
Web Forms: ASPxGridView - Search Panel
CardView:
Web Forms: ASPxCardView - Search Panel
Vertical Grid:
Web Forms: ASPxVerticalGrid - Search Panel
Tree List:
Web Forms: ASPxTreeList - Search Panel