The rows.collapseAll() method collapses all nodes of the JavaScript Scheduler component resource tree.
See also rows.expandAll().
DayPilot.Scheduler.rows.collapseAll();