7. Server-Side Event Handling

EventDescription
EventClickOccurs when the user clicks on an event and EventClickHandling property is set to PostBack.
TimeRangeSelectedOccurs when the user clicks on an event and TimeRangeSelectedHandling property is set to PostBack.

Your server-side event handling methods will get the important data:

EventClick knows the event value (PK column)

The e argument of EventClick handler (EventClickEventArgs) holds is the value of the clicked event (DataValueField) in e.Value.

protected void DayPilotCalendar1_EventClick(object sender, EventClickEventArgs e)
{
  Label1.Text = "Selected event: " + e.Value;
}

TimeRangeSelected knows the time clicked

protected void DayPilotCalendar1_TimeRangeSelected(object sender, TimeRangeSelectedEventArgs e)
{
  Label1.Text = "Selected time: " + e.Start;
}

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java