The backend action will pass control to a new instance of a Dpc class. Dpc class is a helper class derived from org.daypilot.ui.DayPilotCalendar. It will handle the calendar events, such as eventMove, eventResize, etc.

Now override onInit() method of the DayPilotCalendar class in the Dpc class in order to handle the Init event: