Box
Map
API
Row
A newer version of this page is available. Switch to the current version.

JavaScript/jQuery TreeList - searchPanel

Configures the search panel.

Type:

SearchPanel

The search panel allows users to search for values in several columns at once. The UI component searches against only those columns whose allowSearch property is set to true.

DevExtreme HTML5 JavaScript jQuery Angular Knockout UI component DataGrid SearchPanel

To make the search panel visible, set the searchPanel.visible property to true.

DataGrid Demo TreeList Demo

View on GitHub

See Also

highlightCaseSensitive

Notifies the UI component whether search is case-sensitive to ensure that search results are highlighted correctly. Applies only if highlightSearchText is true.

Type:

Boolean

Default Value: false

highlightSearchText

Specifies whether found substrings should be highlighted.

Type:

Boolean

Default Value: true

placeholder

Specifies a placeholder for the search panel.

Type:

String

Default Value: 'Search...'

searchVisibleColumnsOnly

Specifies whether the UI component should search against all columns or only visible ones.

Type:

Boolean

Default Value: false

By default, the UI component searches against all columns configured in the columns array. Some of them may be invisible, and finding a result in them may confuse a user. To avoid this, set the searchVisibleColumnsOnly property to true.

text

Sets a search string for the search panel.

Type:

String

Default Value: ''
Raised Events: onOptionChanged

visible

Specifies whether the search panel is visible or not.

Type:

Boolean

Default Value: false

width

Specifies the width of the search panel.

Type:

String

|

Number

Default Value: 160

This property accepts a value of one of the following types:

  • Number
    The width in pixels.

  • String
    A CSS-accepted measurement of width. For example, "55px", "20vw", "80%", "auto", "inherit".

View Demo