The rows.add() method adds a new row to the JavaScript Scheduler component (as the last item at the top level).
DayPilot.Scheduler.rows.add(data);
dp.rows.add({ name: "Resource 10", id: 10 });