DayPilot.Scheduler.resourceCollapseHandling

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.resourceCollapseHandling

Possible Values

  • "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).

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

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript