DimTreeView.RequestSelection

Syntax

RequestSelection: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The RequestSelection event occurs after changing selection in the dictionary tree.

Comments

The DimTreeView.BeforeRequestSelection event occurs before changing items selection.

Example

To execute the example, the HTML page must contain the DimTree component named dimTree (see Example of Creating the DimTree Component). Add a handler for the RequestSelection event:

            dimTree.RequestSelection.add(function (sender, args) {
                //If selection is not synchronised with the DimSource server data model, delete all nodes  
                if (dimTree.getSyncDataSrv() == false) {
                    dimTree.clear()
                }
            });

After executing the example on changing selection in the tree all nodes are removed, if the tree selection is not synchronized to the server data model DimSource.

See also:

DimTreeView