Parent resources group related rows in a resource tree. For example, a Design team can contain Alex Morgan and Casey Brooks as bookable child resources.

Keep Parent Rows as Group Headings
Enable treeEnabled and set treePreventParentUsage to true to prevent selecting time ranges and moving events onto parent resources. Child resources remain available for scheduling. This is supported in Lite since version 2026.4.899 and in Pro.
The default is false. The setting guards those user interactions; it does not remove existing parent-row events or prevent an application from assigning data to a parent. Existing events on parent rows can still be resized.
The examples use Lite packages. The same static tree options work in Pro; keep your Pro package imports if your application uses Pro. For component setup, see the Angular, React, and Vue integration guides.
JavaScript
The example assumes an existing <div id="dp"></div> container and a loaded DayPilot library.
const scheduler = new DayPilot.Scheduler("dp", {
startDate: "2028-04-03",
days: 14,
scale: "Day",
timeHeaders: [{groupBy: "Month"}, {groupBy: "Day", format: "d"}],
treeEnabled: true,
rowHeaderWidth: 200,
treePreventParentUsage: true,
resources: [{id: "design", name: "Design team", expanded: true, children: [
{id: "alex", name: "Alex Morgan"},
{id: "casey", name: "Casey Brooks"}
]}],
events: [{id: 1, resource: "alex", text: "Interface design",
start: "2028-04-05", end: "2028-04-08"}]
});
scheduler.init();
Angular
import {Component} from "@angular/core";
import {DayPilot, DayPilotModule} from "@daypilot/daypilot-lite-angular";
@Component({
selector: "app-tree-example",
standalone: true,
imports: [DayPilotModule],
template: `<daypilot-scheduler [config]="config"></daypilot-scheduler>`
})
export class TreeExampleComponent {
config: DayPilot.SchedulerConfig = {
startDate: "2028-04-03",
days: 14,
scale: "Day",
timeHeaders: [{groupBy: "Month"}, {groupBy: "Day", format: "d"}],
treeEnabled: true,
rowHeaderWidth: 200,
treePreventParentUsage: true,
resources: [{id: "design", name: "Design team", expanded: true, children: [
{id: "alex", name: "Alex Morgan"},
{id: "casey", name: "Casey Brooks"}
]}],
events: [{id: 1, resource: "alex", text: "Interface design",
start: "2028-04-05", end: "2028-04-08"}]
};
}
React
import React from "react";
import {DayPilotScheduler} from "@daypilot/daypilot-lite-react";
export default function TreeExample() {
return <DayPilotScheduler
startDate="2028-04-03"
days={14}
scale="Day"
timeHeaders={[{groupBy: "Month"}, {groupBy: "Day", format: "d"}]}
treeEnabled={true}
rowHeaderWidth={200}
treePreventParentUsage={true}
resources={[{id: "design", name: "Design team", expanded: true, children: [
{id: "alex", name: "Alex Morgan"},
{id: "casey", name: "Casey Brooks"}
]}]}
events={[{id: 1, resource: "alex", text: "Interface design",
start: "2028-04-05", end: "2028-04-08"}]}
/>;
}
Vue
<script setup lang="ts">
import {DayPilotScheduler} from "@daypilot/daypilot-lite-vue";
const resources = [{id: "design", name: "Design team", expanded: true, children: [
{id: "alex", name: "Alex Morgan"},
{id: "casey", name: "Casey Brooks"}
]}];
const events = [{id: 1, resource: "alex", text: "Interface design",
start: "2028-04-05", end: "2028-04-08"}];
</script>
<template>
<DayPilotScheduler
startDate="2028-04-03"
:days="14"
scale="Day"
:timeHeaders="[{groupBy: 'Month'}, {groupBy: 'Day', format: 'd'}]"
:treeEnabled="true"
:rowHeaderWidth="200"
:treePreventParentUsage="true"
:resources="resources"
:events="events"
/>
</template>
Additional Pro Options
Parent-cell styling: Pro marks parent grid cells with the theme's
*_cellparentclass. Lite does not add this parent-cell class.Dynamic Resource Tree Loading: Pro can load children when a group is expanded. Lite uses children already present in the supplied hierarchy.
Try the Lite Resource Tree demo.
ASP.NET WebForms
Demo
Scheduling events in parent tree nodes can be disabled using TreePreventParentUsage = true.
See Also
Restaurant Table Reservation Tutorial (ASP.NET, C#, VB.NET)
ASP.NET MVC
@Html.DayPilotScheduler("dps_parents", new DayPilotSchedulerConfig {
BackendUrl = ResolveUrl("~/Scheduler/Backend"),
...
TreeEnabled = true,
TreePreventParentUsage = true
})Demo
Availability
Availability of this feature in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript | ||
| DayPilot for ASP.NET WebForms | ||
| DayPilot for ASP.NET MVC | ||
| DayPilot for Java |
DayPilot