Note: The Calendar can be initialized using a jQuery plugin.
Source
<div id="dpc"></div> <script type="text/javascript"> $(document).ready(function() { dpc = $("#dpc").daypilotCalendar({ backendUrl: '@Url.Content("~/Calendar/Backend")', viewType: "Week", timeRangeSelectedHandling: "JavaScript", onTimeRangeSelected: function(start, end) { createEvent(start, end); }, eventMoveHandling: "CallBack", eventResizeHandling: "CallBack" }); }); </script>