$(function(){
var scheduler = $("#scheduler").dxScheduler({
dataSource: data,
views: [{
type: "month",
name: "Auto Mode",
maxAppointmentsPerCell: "auto"
}, {
type: "month",
name: "Unlimited Mode",
maxAppointmentsPerCell: "unlimited"
}, {
type: "month",
name: "Numeric Mode",
maxAppointmentsPerCell: 2
}],
currentView: "Auto Mode",
currentDate: new Date(2017, 4, 25),
resources: [{
fieldExpr: "roomId",
dataSource: resourcesData,
label: "Room"
}],
height: 650
}).dxScheduler("instance");
});
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DevExtreme Demo</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>window.jQuery || document.write(decodeURIComponent('%3Cscript src="js/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/event.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/supplemental.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cldrjs/0.4.4/cldr/unresolved.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/message.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/number.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/currency.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/globalize/1.1.1/globalize/date.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/19.2.4/css/dx.common.css" />
<link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/19.2.4/css/dx.light.css" />
<script src="https://cdn3.devexpress.com/jslib/19.2.4/js/dx.all.js"></script>
<script src="data.js"></script>
<script src="index.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body class="dx-viewport">
<div class="demo-container">
<div id="scheduler"></div>
</div>
</body>
</html>
var data = [
{
text: "Google AdWords Strategy",
roomId: 1,
startDate: new Date(2017, 4, 5, 9, 0),
endDate: new Date(2017, 4, 5, 10, 30)
}, {
text: "New Brochures",
roomId: 5,
startDate: new Date(2017, 4, 5, 11, 30),
endDate: new Date(2017, 4, 5, 14, 15)
}, {
text: "Brochure Design Review",
roomId: 5,
startDate: new Date(2017, 4, 5, 13, 15),
endDate: new Date(2017, 4, 5, 16, 15)
}, {
text: "Website Re-Design Plan",
roomId: 5,
startDate: new Date(2017, 4, 5, 16, 45),
endDate: new Date(2017, 4, 5, 11, 15)
}, {
text: "Rollout of New Website and Marketing Brochures",
roomId: 2,
startDate: new Date(2017, 4, 9, 8, 15),
endDate: new Date(2017, 4, 9, 10, 45)
}, {
text: "Update Sales Strategy Documents",
roomId: 3,
startDate: new Date(2017, 4, 9, 12, 0),
endDate: new Date(2017, 4, 9, 13, 45)
}, {
text: "Non-Compete Agreements",
roomId: 3,
startDate: new Date(2017, 4, 9, 8, 15),
endDate: new Date(2017, 4, 9, 9, 0)
}, {
text: "Update NDA Agreement",
roomId: 1,
startDate: new Date(2017, 4, 10, 11, 45),
endDate: new Date(2017, 4, 10, 13, 45)
}, {
text: "Update Employee Files with New NDA",
roomId: 4,
startDate: new Date(2017, 4, 18, 14, 0),
endDate: new Date(2017, 4, 18, 16, 45)
}, {
text: "Submit Questions Regarding New NDA",
roomId: 4,
startDate: new Date(2017, 4, 18, 8, 0),
endDate: new Date(2017, 4, 18, 9, 30)
}, {
text: "Submit Signed NDA",
roomId: 4,
startDate: new Date(2017, 4, 18, 12, 45),
endDate: new Date(2017, 4, 18, 14, 0)
}, {
text: "Review Revenue Projections",
roomId: 4,
startDate: new Date(2017, 4, 25, 17, 15),
endDate: new Date(2017, 4, 25, 18, 0)
}, {
text: "Comment on Revenue Projections",
roomId: 1,
startDate: new Date(2017, 4, 22, 9, 15),
endDate: new Date(2017, 4, 22, 11, 15)
}, {
text: "Provide New Health Insurance Docs",
roomId: 4,
startDate: new Date(2017, 4, 22, 12, 45),
endDate: new Date(2017, 4, 22, 14, 15)
}, {
text: "Review Changes to Health Insurance Coverage",
roomId: 4,
startDate: new Date(2017, 4, 25, 14, 15),
endDate: new Date(2017, 4, 25, 15, 30)
}, {
text: "Review Training Course for any Ommissions",
roomId: 4,
startDate: new Date(2017, 4, 22, 14, 0),
endDate: new Date(2017, 4, 22, 12, 0)
}, {
text: "Recall Rebate Form",
roomId: 2,
startDate: new Date(2017, 4, 23, 12, 45),
endDate: new Date(2017, 4, 23, 13, 15)
}, {
text: "Create Report on Customer Feedback",
roomId: 3,
startDate: new Date(2017, 4, 23, 15, 15),
endDate: new Date(2017, 4, 23, 17, 30)
}, {
text: "Review Customer Feedback Report",
roomId: 3,
startDate: new Date(2017, 4, 17, 16, 15),
endDate: new Date(2017, 4, 17, 18, 30)
}, {
text: "Customer Feedback Report Analysis",
roomId: 3,
startDate: new Date(2017, 4, 17, 9, 30),
endDate: new Date(2017, 4, 17, 10, 30)
}, {
text: "Prepare Shipping Cost Analysis Report",
roomId: 3,
startDate: new Date(2017, 4, 23, 12, 30),
endDate: new Date(2017, 4, 23, 13, 30)
}, {
text: "Provide Feedback on Shippers",
roomId: 3,
startDate: new Date(2017, 4, 23, 14, 15),
endDate: new Date(2017, 4, 23, 16, 0)
}, {
text: "Select Preferred Shipper",
roomId: 1,
startDate: new Date(2017, 4, 26, 17, 30),
endDate: new Date(2017, 4, 26, 20, 0)
}, {
text: "Complete Shipper Selection Form",
roomId: 5,
startDate: new Date(2017, 4, 25, 8, 30),
endDate: new Date(2017, 4, 25, 10, 0)
}, {
text: "Upgrade Server Hardware",
roomId: 5,
startDate: new Date(2017, 4, 26, 12, 0),
endDate: new Date(2017, 4, 26, 14, 15)
}, {
text: "Upgrade Personal Computers",
roomId: 5,
startDate: new Date(2017, 4, 26, 14, 45),
endDate: new Date(2017, 4, 26, 16, 30)
}
];
var resourcesData = [
{
text: "Room 401",
id: 1,
color: "#bbd806"
}, {
text: "Room 402",
id: 2,
color: "#f34c8a"
}, {
text: "Room 403",
id: 3,
color: "#ae7fcc"
}, {
text: "Room 407",
id: 4,
color: "#ff8817"
}, {
text: "Room 409",
id: 5,
color: "#03bb92"
}
];