selectLevel (level);
level. Number of the level elements in which must be selected.
The selectLevel method selects all elements on the specified level.
To execute the example, the HTML page must contain DimensionTree component named dimTree with the source dim (see Example of Creating the DimensionTree Component):
dim.setIsAllElsLoaded(true);
dim.selectLevel(1);
dimTree.refreshAll();
After executing the example all nodes are selected in the second level of the tree.
Use the Dimension.deSelectLevel method to remove selection from elements of the second level:
dim.deSelectLevel (1);
dimTree.refreshAll();
See also: