DimTreeView.deselectAll

Syntax

deselectAll (callback, fireEvent)

Parameters

callback. Callback procedure. Optional parameter.

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 deselectAll method removes selection from all dictionary items.

Example

To execute the example, the HTML page must contain the DimTree component (see Example of Creating the DimTree Component). In the BODY tag add the DIV element with the Div2 identifier. Add a button named button1, clicking which will deselect all selected dimension elements, and moves the focus on the first item in the tree:

            var button1 = new PP.Ui.Button({
               ParentNode: document.getElementById("Div2"),
               Content: "Deselect all"
            });
            button1.Click.add(function (sender, args) {
               dimTree.deselectAll();
               dimTree.setFocusToElm(dimTree.getControl().Nodes[0].Key);
            });

After executing the example clicking the button removes selection from all selected tree items, and sets focus on the first tree item.

See also:

DimTreeView