Enable runtime navigation model searches
- Last UpdatedDec 10, 2024
- 2 minute read
The search field above a NavTree control can be displayed or hidden during runtime based on the value set to the Show Search Bar property. A search field appears when Show Search Bar is selected, which is the default value.
The NavTree control has other properties that affect runtime searches. See About search results for instructions to show the root of the navigation model.
To enable runtime navigation model searches
-
Open a layout or ViewApp in their respective editors.
-
Drag and drop a NavTree control onto a layout pane.
-
Select the NavTree control placed on the pane.
-
Select the Properties grid to show the properties of the NavTree control.

-
Select the Show Search Bar property to show the search bar above the navigation tree.
-
Select the Show Alarms property if you want to see the alarm status of navigation items that appear in the search results list.
-
Select the Selection Closes Search property if you want to hide the search list immediately after selecting an item from the search list.
-
If you want to change the highlight color that appears in the search results list, select the Highlight Color property.
-
Place the mouse cursor over the data entry field to show a triangle icon at the right.
-
Select the triangle icon to show a color picker control.

-
Select a highlight color from the picker.
-
-
Save your changes to the NavTree control.