The resourceExpandHandling property (string) specifies the default action for onResourceExpand when the user expands a resource tree node in the JavaScript Scheduler component.
DayPilot.Scheduler.resourceExpandHandling"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).
"Disabled"Calling args.preventDefault() in onResourceExpand does not stop the node from expanding. It only prevents the action configured by this property.
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"
<!-- ... -->
/>