Collapses all nodes and performs the drill-up of all hierarchies in the slice on the grid.
webdatarocks.collapseAllData();
Check out the CodePen example.