The resourceCollapseHandling property (string) specifies the default action for onResourceCollapse when the user collapses a resource tree node in the JavaScript Scheduler component.
DayPilot.Scheduler.resourceCollapseHandling"Disabled" - performs no additional handling when a resource tree node is collapsed.
"Enabled" - enables client-side resource collapse handling and fires onResourceCollapse.
"PostBack" - handles the collapse using PostBack (ASP.NET WebForms only).
"CallBack" - handles the collapse using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).
"JavaScript" - uses the legacy client-side API and fires onResourceCollapse(resource).
"Disabled"Calling args.preventDefault() in onResourceCollapse does not stop the node from collapsing. It only prevents the action configured by this property.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
resourceCollapseHandling: "CallBack",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
resourceCollapseHandling: "CallBack",
// ...
};React
<DayPilotScheduler
resourceCollapseHandling="CallBack"
{/* ... */}
/>Vue
<DayPilotScheduler
resourceCollapseHandling="CallBack"
<!-- ... -->
/>