Our team recently had an MVC 5 project with this need. The project required the ability to display the calendar of events from the database, as well as adding and removing existing calendar items. We looked at DayPilot Lite and Dhtmlx JavaScript version 4.1 open source.
What we found
JavaScript .Net WebForms / MVC- , JavaScript MVC, , ( ). JavaScript , Dhtmlx, DayPilot WebForms MVC.
, , .
htmlx JavaScript Calendar/Ajax Scheduler ASP.Net MVC 5, , . , , API , , . , , , . , , AJAX .
dhtmlx
, , dhtmlx.
http://www.codeproject.com/Articles/148500/Event-Calendar-for-an-ASP-NET-MVC-Application
http://www.codeproject.com/Articles/249921/How-to-Build-a-Room-Booking-Calendar-with-dhtmlxSc
, Stas Wolski .
, . , - ( ) -.
( ).
scheduler.config.xml_date = "%m/%d/%Y %H:%i".
, MVC View Model (VM), , (@Model.StartDate.ToString("d")), .
VM , , (item.StartDate.ToString("MM/dd/yyyy HH:mm:ss")).
API, , .
- scheduler.attachEvent
- scheduler.templates.hour_scale
- scheduler.renderEvent scheduler.templates.event_class
/ - scheduler.ignore_week
- scheduler._dhtmlx_confirm
JS MVC, , . dhtmlx, , undefined. , , Bundle ScriptBundle.
bundles.Add(new Bundle("~/bundles/dhtmlx/calendar").Include(
"~/Scripts/dhtmlx/dhtmlxscheduler.js",
"~/Scripts/dhtmlx/ext/dhtmlxscheduler_limit.js",
"~/Scripts/dhtmlx/ext/dhtmlxscheduler_minical.js",
"~/Scripts/dhtmlx/ext/dhtmlxscheduler_readonly.js"));
, , , .