Hi ,
I am unable to execute EventClick & free time click events. I recieve the below error message
"No overload for 'DayPilotCalendar1_EventClick' matches delegate 'DayPilot.Web.Ui.EventClickDelegate'"
My Source code for .aspx page is
<form id="form1" runat="server">
<div>
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" DataStartField="EVENTDATE" OnEventClick="DayPilotCalendar1_EventClick" OnFreeTimeClick="DayPilotCalendar1_FreeTimeClick" ShowHours= "true" DataValueField="EVENTID" DataTextField="EVENTNAME" DataEndField="EVENTEND" runat="server" />
<asp:Label ID="Label1" runat="server"></asp:Label>
</div>
</form>
Code-behind :
public void DayPilotCalendar1_FreeTimeClick(System.DateTime start)
{
Label1.Text = "Selected time: " + start.ToString("s");
Response.Write(Label1.Text);
}
public void DayPilotCalendar1_EventClick(string pk)
{
Label1.Text = "Selected event: " + pk;
}
Kindly advice how to resolve it. Thanks