TreeListBase.find

Syntax

find(value, column, setFocus, fireEvents);

Parameters

value.String. Searched string.

column. Number|String. The column, in which search is executed. By default it is set to 0.

setFocus. Boolean. Focus the found string.

fireEvents. Boolean. Generate change event. Optional parameter.

Description

The find method returns key of the node containing the searched row in the corresponding column.

Example

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

// Determine nodes containing 2 in the second column
Tree.find("2", 1, true);
// -> "0"

After executing the example the first node is focused, the console displays node key.

See also:

TreeListBase