DayPilot Scheduler displays resources as an expandable tree. Group people by team, rooms by location, or equipment by department, and collapse groups to focus on the rows you need.
Static resource trees are supported in DayPilot Lite for JavaScript since version 2026.4.899 and in DayPilot Pro. Lite expands and collapses loaded children immediately. Dynamic child loading and tree animation are Pro features.

Configure the Tree
Set treeEnabled to true and place nested resources in the children array of each parent. Groups start collapsed unless their resource data has expanded: true. You can nest further groups in the same way. Events refer to the ID of their assigned resource, such as "alex" in the examples.
The row header displays an arrow for each group and indents its descendants. treeIndent controls the indentation per level in pixels; the default is 20.
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
Create a container with id="dp" after loading DayPilot, then initialize the Scheduler:
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,
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();
Expand, Collapse and Inspect Rows
Users toggle a group using its row-header arrow. For application controls, find a row with rows.find() and call expand(), collapse(), or toggle():
const team = scheduler.rows.find("design");
if (team) {
team.collapse();
team.expand();
}
rows.expandAll() and rows.collapseAll() control the whole tree. Collapsing hides descendants without removing their resources or events; individual toggles preserve the nested groups' expansion state.
Use row.parent() and row.children() to inspect the hierarchy. A root has no parent. Rows expose their nesting level as level and their current visibility as hidden. Expansion state is stored in the resource's expanded field, not a row.expanded property.
The resource expand and resource collapse callbacks report individual toggles after the change. Bulk operations do not guarantee a callback for each affected row.
Update Resource Data
Replace the full hierarchy using update() with a new resources array. The data you provide determines the new expansion state. Include expanded on groups whose open state you want to retain.
scheduler.update({
resources: [{id: "operations", name: "Operations", expanded: true, children: [
{id: "robin", name: "Robin Ellis"},
{id: "sam", name: "Sam Parker"}
]}]
});
Use Parent Resources when groups should act as headings while their children remain bookable. The Resource Management demo also shows renaming and removing nested resources and application-managed booking cleanup.
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,
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}
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"
:resources="resources"
:events="events"
/>
</template>
Pro Tree Options
Pro also supports dynamic child loading and expand/collapse animation. These options are not part of Lite's static resource tree.
Expand and Collapse Animation
Try the resource tree animation demo to compare durations and easing curves.
In DayPilot Pro, tree animation is enabled by default. In Pro since version 2026.4.7077, set treeAnimation: "Auto" to respect the system’s reduced-motion preference:
dp.update({
treeAnimation: "Auto",
treeAnimationDuration: 350,
treeAnimationEasing: "ease-in-out"
});Use treeAnimation: false to turn the animation off. treeAnimationDuration defaults to "Auto", which chooses a suitable duration for each group. Set a nonnegative number of milliseconds for consistent timing, or 0 for an immediate change.
Use treeAnimationEasing to change how the animation speeds up and slows down. The default is "standard"; see the property reference for supported easing names and custom cubic-bezier() values.
Demos
ASP.NET WebForms

The resources can be organized in a tree hierarchy.
Setup
Set
TreeEnabled="true".Define the tree using
Resourcescollection (add node children toResource.Childrencollection).(Optionally) adjust the image position using
TreeImageMarginTopandTreeImageMarginLeft.(Optionally) adjust the level indent (
TreeIndent).
<DayPilot:DayPilotScheduler
ID="DayPilotScheduler1"
runat="server"
...
TreeEnabled="true"
TreeIndent="15"
TreeImageMarginLeft="3"
TreeImageMarginTop="6"
>
</DayPilot:DayPilotScheduler>Loading Resources
See also Resource Loading.
CSS
You can style the following elements using a CSS theme:
Resource header cells
Node icons (nochildren, expand, collapse)
The margins and indentation has to be set using inline properties.
Demo
ASP.NET MVC
The Scheduler resources can be organized in a tree hierarchy.
The resource tree has to be enabled first using TreeEnabled property:
@Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig {
BackendUrl = ResolveUrl("~/Scheduler/Backend"),
TreeEnabled = true
})The child resources should be added using Resource.Children collection:
public class SchedulerController : Controller
{
public ActionResult Backend()
{
return new Dps().CallBack(this);
}
class Dps : DayPilotScheduler
{
protected override void OnInit(InitArgs e)
{
Resource b1 = new Resource("Building 1", "B1");
Resources.Add(r);
b1.Children.Add("Room A", "RA");
b1.Children.Add("Room B", "RB");
UpdateWithMessage("Welcome!", CallBackUpdateType.Full);
}
}
}
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