The resourceHeaderMenuClickCallBack() method executes the server-side resource header menu command using a CallBack (ASP.NET WebForms, ASP.NET MVC, Java).
DayPilot.Scheduler.resourceHeaderMenuClickCallBack(r, command, data)r (DayPilot.Resource) - clicked resource
command (string) - menu item command name
data (object) - additional custom data
The DayPilot.Resource object has the following properties:
start (DayPilot.Date) - resource start date (usually equals to StartDate)
name (string) - resource name
value (string) - resource value (id)
Use this legacy helper to invoke a resource header menu action on the server side.
The command parameter identifies the selected menu item and data lets you include additional custom data with the callback request.
const resource = {
start: new DayPilot.Date("2026-03-09"),
name: "Room A",
value: "A"
};
dp.resourceHeaderMenuClickCallBack(resource, "edit", { source: "menu" });