Back to Devexpress

ResourceTreeControl.ShowSearchPanelMode Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-resourcetreecontrol-fd72d1b6.md

latest3.3 KB
Original Source

ResourceTreeControl.ShowSearchPanelMode Property

Gets or sets whether to display the search panel. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ShowSearchPanelMode ShowSearchPanelMode { get; set; }
vb
Public Property ShowSearchPanelMode As ShowSearchPanelMode

Property Value

TypeDescription
ShowSearchPanelMode

A DevExpress.Xpf.Grid.ShowSearchPanelMode enumeration value. By default, HotKey

|

Available values:

NameDescription
Default

Never if the GridControl is bound to a virtual source; otherwise, HotKey.

| | HotKey |

Ctrl+F - Invokes the Search Panel. Ensure that no cell editor is opened before invoking the Search Panel. Otherwise, the shortcut will be intercepted by the in-place editor.

The Close button (if displayed) hides the Search Panel.

Esc - Clears the search box. If the search box is empty, pressing Esc closes the Search Panel.

| | Always |

The Search Panel is always visible, it cannot be hidden by an end-user. The close button is hidden.

| | Never |

The Search Panel is hidden and cannot be shown by the end-user.

|

Remarks

By default, an end-user can show and hide the search panel when required. To display the search panel, an end-user should press Ctrl+F or select ‘Find’ context menu item. To hide the search panel, an end-user should click the Close button or press Esc (the first press clears the search box; the second press closes the search panel).

To display the search panel and prevent an end-user from hiding it, set the ShowSearchPanelMode property to ShowSearchPanelMode.Always. To hide the search panel and prevent an end-user from showing it, set the ShowSearchPanelMode property to ShowSearchPanelMode.Never.

See Also

ResourceTreeControl Class

ResourceTreeControl Members

DevExpress.Xpf.Scheduling Namespace