Your search did not match any results.

Tree View - TreeView with Search Bar

To add a search bar to the TreeView and customize the search functionality, do the following:

  • Set the searchEnabled property to true.

  • Use the searchMode property to specify whether items should contain (default), start with, or match the search string. In this example, you can switch between search modes in the drop-down menu.

  • Configure the searchExpr property to specify custom search fields. The default search field is text.

Backend API

The TreeView uses the TextBox component as a search bar. To customize it, specify TextBox properties in the searchEditorOptions object.

We do not recommend that you enable search if the TreeView uses virtual mode or custom logic to load data on demand. In these cases, the TreeView may not have the full dataset, and the search results include only loaded nodes.