The headerClickCallBack() method executes the server-side HeaderClick event using a CallBack (ASP.NET WebForms, ASP.NET MVC, Java).
Declaration
DayPilot.Calendar.headerClickCallBack(c, data)Parameters
c(DayPilot.Column) - clicked header descriptordata(object) - additional custom data
The DayPilot.Column object has the following properties:
start(DayPilot.Date) - column start datename(string) - column namevalue(string) - column value (id)
Notes
Use this legacy method to trigger the server-side HeaderClick event from client-side code and optionally include additional custom data in the callback request.
Use DayPilot.Calendar.headerClickHandling to configure the default column header click pipeline. In the current JavaScript API, use DayPilot.Calendar.onHeaderClick before the default action and DayPilot.Calendar.onHeaderClicked after it.
Example
const dp = new DayPilot.Calendar("dp", {
// ...
});
dp.init();
const column = {
start: new DayPilot.Date("2026-03-09"),
name: "Room A",
value: "A"
};
dp.headerClickCallBack(column, { source: "toolbar" });See Also
Column Header Customization [doc.daypilot.org]
DayPilot.Calendar.headerClickHandling
DayPilot.Calendar.onHeaderClick
DayPilot