The headerClickCallBack() method executes the server-side HeaderClick event using a CallBack (ASP.NET WebForms, ASP.NET MVC, Java).
DayPilot.Calendar.headerClickCallBack(c, data)c (DayPilot.Column) - clicked header descriptor
data (object) - additional custom data
The DayPilot.Column object has the following properties:
start (DayPilot.Date) - column start date
name (string) - column name
value (string) - column value (id)
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.
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" });Column Header Customization [doc.daypilot.org]
DayPilot.Calendar.headerClickHandling
DayPilot.Calendar.onHeaderClick