Hi,
I'm using the following command to try and push a disabled time range into the disabled field within the resources properties and call update, however I'm running into and issue which is giving me an uncaught error:
Uncaught TypeError: Cannot read properties of undefined (reading 'parent')
Function in use:
dp.onTimeRangeSelected = function(args) {
var row = dp.rows.find(args.resource);
row.data.disabled.push({start: args.start['value'], end: args.end['value']});
dp.rows.update(row);
//console.log(row)
}
I was following the example provided in this documentation, however I still get the same error when I call update.
https://api.daypilot.org/daypilot-scheduler-rows-update/
Any clue on why calling dp.rows.update(row) returns the error above?