Installation
There are three steps required for using DayPilot Pro for MVC in a project:
- Include the DLL.
- Include the scripts.
- Include the theme CSS.
DLL
- Put DayPilot.Mvc.dll in the bin directory of the web application.
- Add it to project references if you are using a compiled web project.
Scripts
Include the following scripts in the web page (the scripts can be found in Demo/Scripts/DayPilot directory):
- common.js (always required)
- bubble.js (only if you are using the Bubble)
- calendar.js (only if you are using the Calendar)
- menu.js (only if you are using the Menu)
- modal.js (only if you are using the modal dialog)
- month.js (only if you are using the Month)
- navigator.js (only if you are using the Navigator)
- scheduler.js (only if you are using the Scheduler)
Example:
<head runat="server">
<!-- ... -->
<script type="text/javascript" src="<%= ResolveUrl("~/Scripts/DayPilot/common.js") %>"></script>
<script type="text/javascript" src="<%= ResolveUrl("~/Scripts/DayPilot/calendar.js") %>"></script>
<!-- ... -->
</head>CSS Themes
Include the Themes directory from the DayPilot demo project.
Include Themes/themes.css stylesheet in the web page:
<head runat="server">
<!-- ... -->
<link type="text/css" rel="stylesheet" href="<%= ResolveUrl("~/Themes/themes.css") %>" />
</head>