The resourceHeaderMenuClickCallBack() method executes the server-side resource header menu command using a CallBack (ASP.NET WebForms, ASP.NET MVC, Java).
Declaration
DayPilot.Scheduler.resourceHeaderMenuClickCallBack(r, command, data)Parameters
r(DayPilot.Resource) - clicked resourcecommand(string) - menu item command namedata(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 namevalue(string) - resource value (id)
Notes
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.
Example
const resource = {
start: new DayPilot.Date("2026-03-09"),
name: "Room A",
value: "A"
};
dp.resourceHeaderMenuClickCallBack(resource, "edit", { source: "menu" });
DayPilot