The resourceHeaderClickCallBack() method executes the server-side resource header click action using a CallBack (ASP.NET WebForms, ASP.NET MVC, Java).
Declaration
DayPilot.Scheduler.resourceHeaderClickCallBack(r, data)Parameters
r(DayPilot.Resource) - clicked resourcedata(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 the server-side resource header click action manually.
The data parameter 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.resourceHeaderClickCallBack(resource, { source: "toolbar" });
DayPilot