I have been attempting to integrate dhtmlxscheduler into an ASP.NET MVC 5 application by following the instructions provided at but I am encountering difficulties. I have installed version 4.1.1 scripts and css using NuGet in my project.
I set up a new project and created a view without a layout, with the controller action serving the view. Despite including the HTML code in my view, the page is rendering completely blank. Can someone help me identify what I might be doing incorrectly? Additionally, how can I make this work with a view that has a layout?
I understand there is a licensed dhtmlxscheduler .NET version available as well.
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>How to start</title>
<script src="@Url.Content("~/Scripts/dhtmlxscheduler/dhtmlxscheduler.js")" type="text/javascript"></script>
<link rel="stylesheet" href="@Url.Content("~/Content/dhtmlxscheduler/dhtmlxscheduler.css")" type="text/css">
<style type="text/css" media="screen">
html, body {
margin: 0px;
padding: 0px;
height: 100%;
overflow: hidden;
}
</style>
<script>
scheduler.init("scheduler_here", new Date(), "month");
</script>
</head>
<body>
<div>
<div id="scheduler_here" class="dhx_cal_container" style="width:100%; height:100%;">
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button"> </div>
<div class="dhx_cal_next_button"> </div>
<div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div>
<div class="dhx_cal_tab" id="day_tab" style="right:204px;"></div>
<div class="dhx_cal_tab" id="week_tab" style="right:140px;"></div>
<div class="dhx_cal_tab" id="month_tab" style="right:76px;"></div>
</div>
<div class="dhx_cal_header"></div>
<div class="dhx_cal_data"></div>
</div>
</div>
</body>
</html>