Event | Description |
---|---|
EventClick | Occurs when the user clicks on an event and EventClickHandling property is set to PostBack. |
TimeRangeSelected | Occurs 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:
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; }
protected void DayPilotCalendar1_TimeRangeSelected(object sender, TimeRangeSelectedEventArgs e) { Label1.Text = "Selected time: " + e.Start; }