Home > Foresight Analytics Platform > Web Application and Desktop Application > Application Development and Functionality Enhancement > Developing Web Application Using DHTML Components > Working with Trees > Classes > TreeListBase > TreeListBase.setFilter
setFilter(string, column);
string. String. Searched string.
column. Number. Filtering column.
The setFilter method sets filter for tree.
The tree displays the nodes containing the specified string in the specified column.
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: