TreeListBase.setExpandedForNodeAncestors

Syntax

setExpandedForNodeAncestors(nodeKey, value, fireEvents, ignoreRules);

Parameters

noeKey. String. Node key

value. Boolean. Set value.

fireEvents. Boolean. Generate event on value changed. By default it is set to true.

ignoreRules. Boolean. Ignore rules. By default it is set to false.

Description

The setExpandedForNodeAncestors method sets expander values to each ancestor of the specified node.

Example

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

// Expand all nodes of ancestors of the nodes with the 4 key
Tree.setExpandedForNodeAncestors(4, true);

After executing the example all ancestors' nodes of the node with the 4 key are expanded.

See also:

TreeListBase