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