DayPilot.Month.eventClickHandling

The eventClickHandling property (string) specifies the default action for the onEventClick event in the monthly calendar.

Declaration

DayPilot.Month.eventClickHandling

Possible Values

  • "Enabled" - keeps the standard event click behavior and runs the configured click handlers.

  • "Disabled" - disables built-in event click handling.

  • "PostBack" - executes the event click action using PostBack (ASP.NET WebForms only).

  • "CallBack" - executes the event click action using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).

  • "JavaScript" - uses the legacy client-side API and fires the client-side click handler instead of a server callback.

  • "Select" - selects the clicked event (DayPilot Pro only).

  • "ContextMenu" - shows the event context menu configured using DayPilot.Month.contextMenu.

  • "Bubble" - shows the bubble configured using DayPilot.Month.bubble (DayPilot Pro only).

Default Value

"Enabled"

Notes

Use DayPilot.Month.onEventClick to intercept the click before the default action is performed, and use DayPilot.Month.onEventClicked when you need to react after it finishes.

In legacy api=1 mode, the handling value defines the only action, and "JavaScript" uses the client-side callback pipeline.

Examples

JavaScript

const month = new DayPilot.Month("dp", {
  eventClickHandling: "Select",
  // ...
});
month.init();

Angular

<daypilot-month [config]="config"></daypilot-month>
config: DayPilot.MonthConfig = {
  eventClickHandling: "Select",
  // ...
};

React

<DayPilotMonth
  eventClickHandling="Select"
  {/* ... */}
/>

Vue

<DayPilotMonth
  eventClickHandling="Select"
  <!-- ... -->
/>

See Also

DayPilot.Month.onEventClick

DayPilot.Month.onEventClicked

DayPilot.Month.contextMenu

DayPilot.Month.bubble

DayPilot.Month.eventHoverHandling

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript

Lite does not support: Bubble, Select