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 DimensionTree component named dimTree (see Example of Creating the DimensionTree Component). Add a handler for the RequestSelection event:
dimTree.RequestSelection.add(function (sender, args) {
//If selection is not synchronized with the Dimension 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 Dimension.
See also: