The onHeaderClicked event handler is fired when the user clicks a calendar column header. It is fired after the default action specified using headerClickHandling.
DayPilot.Calendar.onHeaderClicked(args);