ExpandedAll: function (sender, args)
sender. Event source.
args. Event information.
The ExpandedAll event occurs after expanding all tree nodes.
To expand all nodes of the dictionary tree, select the Expand All item in the context menu of the DimTree component or use the DimTreeView.expandAll method.
To execute the example, the HTML page must contain the DimTree component (see Example of Creating the DimTree Component). In the BODY tag add DIV element with the identifier Div2. Add the button named button1 clicking which expands the dimension tree, and a handler for the ExpandedAll event:
var button1 = new PP.Ui.Button( { ParentNode: document.getElementById("Div2"), Content: "Expand all" }); button1.Click.add(function (sender, args) { dimTree.expandAll() }); dimTree.ExpandedAll.add(function (sender, args) { button1.Click.add(function (sender, args) { dimTree.collapseAll() }), button1.setContent("Collapse all") });
After executing the example clicking the button expands all nodes of the dictionary tree. The button name changes to Collapse All. Click the button. All nodes collapse.
See also: