function collapseAll() {
var tree = mini.get("tree1");
tree.collapseAll();
}
function expandAll() {
var tree = mini.get("tree1");
tree.expandAll();
}
function collapseLevel() {
var tree = mini.get("tree1");
tree.collapseLevel(0);
}
function expandLevel() {
var tree = mini.get("tree1");
tree.expandLevel(0);
}
function expandLevel2(){
var tree = mini.get("tree1");
tree.expandLevel(1);
}
function collapseNode() {
var tree = mini.get("tree1");
var node = tree.getSelectedNode();
if (node) {
tree.collapseNode(node);
}
}
function expandNode() {
var tree = mini.get("tree1");
var node = tree.getSelectedNode();
if (node) {
tree.expandNode(node);
}
}
function collapsePath() {
var tree = mini.get("tree1");
tree.collapsePath("datagrid");
}
function expandPath() {
var tree = mini.get("tree1");
tree.selectNode("datagrid");
tree.expandPath("datagrid");
}
</script>