The groups.expanded() method returns an array with expanded concurrent event groups for the Scheduler row.
DayPilot.Row.groups.expanded();
An array of group objects. The group object has expand() and collapse() methods which let you change the group state.
const expandedGroups = dp.rows.find("A1").groups.expanded();