RequestSelection: function (sender, args);
sender. Event source.
args. Event information.
The RequestSelection event occurs after changing selection in the dictionary tree.
The DimTreeView.BeforeRequestSelection event occurs before changing items selection.
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: