DimTreeView.selectAll

Syntax

selectAll(callback, fireEvent);

Parameters

callback. Callback procedure.

fireEvent. Parameter that determines whether to fire the RequestSelection event after method execution. Default property value is True. If the parameters is set to False the event is not fired.

Description

The selectAll method sets selection for all nodes of the dictionary tree.

Comments

The method is relevant if the DimTreeView.SelectionMode property is set to PP.Ui.TreeListSelectionMode.MultiSelect.

Example

To execute the example, the HTML page must contain the DimTree component named dimTree (see Example of Creating the DimTree Component). In the BODY tag add DIV element with the identifier Div2. Add a button clicking which selects all tree nodes:

            button1.Click.add(function (sender, args) {
                dimTree.setMultiSelect(true);
                dimTree.selectAll();
            });

After executing the example clicking the Select All button select all tree nodes.

See also:

DimTreeView