TreeListBase.NodeExpanded

Syntax

NodeExpanded: Boolean;

Description

The NodeExpanded property determines whether the specified node is expanded.

Comments

Use the setNodeExpanded(nodeKey, value, fireEvents, ignoreRules) method to set the property value, and the getNodeExpanded(nodeKey) method to get the property value.

Parameters:

nodeKey. String. Node identifier

value. Boolean. Value.

fireEvents. Boolean. Determines whether to generate node expand event, for example, TreeListBase.ExpansionChanging / TreeListBase.ExpansionChanged.

ignoreRules. Boolean. Determines whether to ignore node expand rules, for example, TreeListBase.NodeFixedExpanded.

Example

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

// Expand the first node
Tree.setNodeExpanded(0, true, false. true);

After executing the example the node with the 0 index is disabled to edit, edit event is not initialized, rules that disable node expanding are ignored.

See also:

TreeListBase