TreeListBase.setFilter

Syntax

setFilter(string, column);

Parameters

string. String. Searched string.

column. Number. Filtering column.

Description

The setFilter method sets filter for tree.

Comments

The tree displays the nodes containing the specified string in the specified column.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Filter nodes
Tree.setFilter("2", 0);

After executing the example the nodes not containing the 2 value are filtered.

See also:

TreeListBase