DimTree.getLoadToFirstSelected

Syntax

getLoadToFirstSelected();

Description

The getLoadToFirstSelected method returns whether it is required to load a tree to the first selected node.

Example

To execute the example, the HTML page must contain the DimCombo component named dimCombo (see Example of the DimCombo Component Layout). Get identifier by the Order preset value:

// Get tree view
tree = dimCombo.getTreeView();
// Check if tree is loaded to the first selected node
console.log( tree.getLoadToFirstSelected ? "Tree is loaded to the first selected node" : "Tree is not loaded to the first selected node");

As a result, the console displays a message about whether it is required to load the tree to the first selected node.

See also:

DimTree