Skip to content
DayPilot

Installation

There are three steps required for using DayPilot Pro for MVC in a project:

  1. Include the DLL.
  2. Include the scripts.
  3. Include the theme CSS (optional).

DLL

DayPilot.Mvc.dll can be found in Binary/MvcX directory in the DayPilot Pro zip file. It includes binaries for MVC 3, MVC 4, and MVC 5.

Scripts

Copy daypilot-all.min.js script to Scripts directory and reference the script in the MVC view:

<script type='text/javascript' src="@Url.Content("~/Scripts/DayPilot/daypilot-all.min.js")'></script>

The script can be found in the Scripts directory of the DayPilot Pro zip file.

CSS Themes

Since version 7.7 DayPilot Pro includes a built-in default theme so it's not necessary to include any CSS files.

If you want to use one of the external themes, copy the css file and include it in the web page:

<!DOCTYPE html>
<html>
<head>
    <!-- ... -->
    <link type='text/css rel='stylesheet' href='@Url.Content("~/Themes/scheduler_white.js")' /> 
</head> <body> <!-- ... --> </body> </html>