The groups.collapseAll() method collapses all concurrent event groups in the row.
DayPilot.Row.groups.collapseAll()
dp.rows.find("A").groups.collapseAll();
Concurrent Event Groups [doc.daypilot.org]
DayPilot.Row Class
Availability of this API item in DayPilot editions: