TreeListBase.focusNode

Syntax

focusNode(nodeKey, fireEvents, ignoreRules);

Parameters

nodeKey. String. Node key

fireEvents. Boolean. Generate change event (FocusChanged / FocusChanging). Optional parameter.

ignoreRules. Boolean. Ignore focusing rules (NodeFixedFocused).

Description

The focuseNode method sets focus on the specified node.

Comments

Focus - border around the node moved with arrows of the mouse. the focused element is selected by pressing the SPACE key.

Example

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

// Set focus to the node 4
Tree.focusNode("key3", false, true);

After executing the example the node 4 gets focused, focusing event is not initialized, focusing rules are ignored.

See also:

TreeListBase