The treePreventParentUsage property (boolean) disables parent nodes in the resources tree hierarchy of the JavaScript Scheduler from being used as drop targets in the grid.

Available in DayPilot Lite for JavaScript since version 2026.4.899.

Declaration

DayPilot.Scheduler.treePreventParentUsage

Default Value

false

Behavior

When treeEnabled is true, this option prevents time range selection and moving events onto rows with child resources. Use it when parent rows serve as group headings and bookings belong on child resources. It does not prevent resizing events that are already assigned to a parent row.

These examples assume that the existing resources include nested children.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  treeEnabled: true,
  treePreventParentUsage: true,
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  treeEnabled: true,
  treePreventParentUsage: true,
  // ...
};

React

<DayPilotScheduler
  treeEnabled={true}
  treePreventParentUsage={true}
/>

Vue

<DayPilotScheduler
  :treeEnabled="true"
  :treePreventParentUsage="true"
/>

See Also

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

ProductLitePro
DayPilot for JavaScript