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.resourceExpandHandlingPossible Values
"Disabled"- performs no additional handling when a resource tree node is expanded."Enabled"- enables client-side resource expand handling and firesonResourceExpand."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 firesonResourceExpand(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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot