In my room planner I'd like to add a couple of rows not interactive, one displaying number of checkins and checkouts and another one displaying occupancy % and number of free rooms by room type. This rows should not interact with the rest of the room planner (events, drag and drop etc)
Is there a way to add such rows?
As an alternative, I added two resources to the scheduler, one for chkin/chkout and one for occupancy. Is there a way to merge row header cells and a way to disable dropping on a row?
dp.onEventMoving = function(args) {
// don't allow moving from A to B
if (args.e.resource() === "A" && args.resource === "B") {
args.left.enabled = false;
args.right.enabled = true;
args.right.html = "You can't move an event from resource A to B";
args.allowed = false;
}
};
You can implement something similar in onTimeRangeSelecting, just checking the target row id (args.resource).