There turned out to be an issue affecting split resources in the latest release (2024.4.6243). However, it only caused problems during event moving, not during the Scheduler initialization. This issue should be fixed now in the latest sandbox build.
Could you please try the following example with the latest sandbox build (2024.4.6248)?
If the problem persists, could you please post the exception strack trace?
<div id="dp"></div>
<script type="text/javascript">
const dp = new DayPilot.Scheduler("dp", {
days: 31,
scale: "Day",
timeHeaders: [
{ groupBy: "Day", format: "d" }
],
rowHeaderColumns: [
{ title: "Month", width: 80 },
{ title: "Resource", display: "name", split: true },
],
cellWidthSpec: "Auto",
onBeforeCellRender: args => {
const belongsToCurrentMonth = args.cell.x + 1 === args.cell.start.getDay();
if (!belongsToCurrentMonth) {
args.cell.properties.backColor = "#dddddd";
}
},
});
dp.init();
const app = {
loadData() {
const resources = [];
const startDate = DayPilot.Date.today().firstDayOfYear();
for (let i = 0; i < 12; i++) {
const month = startDate.addMonths(i);
resources.push({
name: month.toString("MMMM"),
id: month.toString("yyyy-MM"),
split: [
{
name: "R1",
id: "R1",
start: month,
end: month.addMonths(1)
},
{
name: "R2",
id: "R2",
start: month,
end: month.addMonths(1)
},
{
name: "R3",
id: "R3",
start: month,
end: month.addMonths(1)
},
]
});
}
const events = [
{
start: startDate.addMonths(1).addDays(1),
end: startDate.addMonths(1).addDays(6),
id: DayPilot.guid(),
text: "Event 1",
resource: "R1"
},
{
start: startDate.addMonths(3).addDays(2),
end: startDate.addMonths(3).addDays(10),
id: DayPilot.guid(),
text: "Event 2",
},
];
dp.update({
resources,
events,
startDate
});
},
};
app.loadData();
</script>