The toggle() method expands a collapsed row or collapses an expanded row.
DayPilot.Row.toggle();
dp.rows.find("G1").toggle();
DayPilot.Row Class
Availability of this API item in DayPilot editions: