It is also possible to expand/collapse all Tree items using the two corresponding methods - expandAll and collapseAll.