You need to create a special entry for each of the event x resource combination.
You can use "joint events" feature to link them together so they will be moved and resized together:
http://javascript.daypilot.org/demo/scheduler/eventsjoint.html
Example:
dp.events.list = [
{ name: "Event", id: "5.1", resource: "R1", join: 5, .... },
{ name: "Event", id: "5.2", resource: "R2", join: 5, .... },
...
];