DayPilot.Scheduler.resourceExpandHandling

The resourceExpandHandling property (string) specifies the default action for onResourceExpand when the user expands a resource tree node in the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.resourceExpandHandling

Possible Values

  • "Disabled" - performs no additional handling when a resource tree node is expanded.

  • "Enabled" - enables client-side resource expand handling and fires onResourceExpand.

  • "PostBack" - handles the expand action using PostBack (ASP.NET WebForms only).

  • "CallBack" - handles the expand action using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).

  • "JavaScript" - uses the legacy client-side API and fires onResourceExpand(resource).

Default Value

"Disabled"

Notes

Calling args.preventDefault() in onResourceExpand does not stop the node from expanding. It only prevents the action configured by this property.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  resourceExpandHandling: "CallBack",
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  resourceExpandHandling: "CallBack",
  // ...
};

React

<DayPilotScheduler
  resourceExpandHandling="CallBack"
  {/* ... */}
/>

Vue

<DayPilotScheduler
  resourceExpandHandling="CallBack"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.onResourceExpand

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript