The resourceCollapseHandling property (string) specifies the default action for onResourceCollapse when the user collapses a resource tree node in the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.resourceCollapseHandlingPossible Values
"Disabled"- performs no additional handling when a resource tree node is collapsed."Enabled"- enables client-side resource collapse handling and firesonResourceCollapse."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 firesonResourceCollapse(resource).
Default Value
"Disabled"Notes
Calling args.preventDefault() in onResourceCollapse does not stop the node from collapsing. It only prevents the action configured by this property.
Examples
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"
<!-- ... -->
/>See Also
DayPilot.Scheduler.onResourceCollapse
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot