> First, EventClickHandlingType "The name 'EventClickHandlingType' does not exist in the current context."
Try to add the namespace:
<%= Html.DayPilotMonth("dp", new DayPilotMonthConfig {
BackendUrl = ResolveUrl("~/Month/Backend"),
EventClickHandling = DayPilot.Web.Mvc.Events.Month.EventClickHandlingType.JavaScript,
EventClickJavaScript = "document.location.href = 'MyUrl?id=' + e.value()"
})%>
You can also add it to the page header:
<%@ Import Namespace="DayPilot.Web.Mvc.Events.Month" %>
> Second, My current thought is that I will have multiple events on the same day (I probably need to do better about describing the app) and I want different links per event. I think I want to load the link along with the event description and such.
You can access the event properties using the e object (see also http://api.daypilot.org/daypilot-event-class/): e.value(), e.text(), e.start()....
With the latest version (1.3 SP1) you can also use a server-side Redirect() method:
View:
<%= Html.DayPilotMonth("dp", new DayPilotMonthConfig {
BackendUrl = ResolveUrl("~/Month/Backend"),
EventClickHandling = DayPilot.Web.Mvc.Events.Month.EventClickHandlingType.CallBack
})%>
Controller (Dpm class):
protected override void OnEventClick(EventClickArgs e)
{
Redirect("~/Dialog/Edit?id=" + e.Id);
}
See also:
http://mvc.daypilot.org/daypilot-lite-for-asp-net-mvc-1-3-sp1/