DayPilot Lite for ASP.NET MVC 1.1

Release date: September 4, 2012 (build 535)

ajax-event-calendar-mvc-jquery.png

Features

jQuery Plugin

DayPilot is still fully independent and doesn't require jQuery to run but now there is a possibility to initialize the event calendar widget using jQuery plugin.

ASP.NET MVC Helper Example

<%= Html.DayPilotCalendar("dpc", new DayPilotCalendarConfig { 
  BackendUrl = ResolveUrl("~/Calendar/Backend"),
  ViewType = DayPilot.Web.Mvc.Enums.Calendar.ViewType.Week,
  TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.JavaScript,
  TimeRangeSelectedJavaScript = "createEvent(start, end)",
  EventMoveHandling = EventMoveHandlingType.CallBack,
  EventResizeHandling = EventResizeHandlingType.CallBack,
  LoadingLabelText="<img src='" + ResolveUrl("~/Media/linked/ajax-loader-round.gif") + "' />",
  LoadingLabelBackColor="",
})%>

jQuery Plugin Example

<div id="dpc"></div>

<script type="text/javascript">
  $(document).ready(function() {
    dpc = $("#dpc").daypilotCalendar({
      backendUrl: '<%= ResolveUrl("~/Calendar/Backend") %>',
      viewType: "Week",
      timeRangeSelectedHandling: "JavaScript",
      onTimeRangeSelected: function(start, end) { createEvent(start, end); },
      eventMoveHandling: "CallBack",
      eventResizeHandling: "CallBack",
      loadingLabelText: "<img src='<%= ResolveUrl("~/Media/linked/ajax-loader-round.gif") %>' />",
      loadingLabelBackColor: ""
    });
  });
</script>

Implemented

  • jQuery plugin added. (build 354)
  • jQuery demo added. (build 354)
  • New default values (client-side). (build 354)

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