The Calendar HtmlHelper extension is a server-side wrapper for the Kendo UI Calendar widget.
Below are listed the steps for you to follow when configuring the Kendo UI Calendar.
.Name("calendar") //The name of the Calendar is mandatory. It specifies the "id" attribute of the widget.
.Min(new DateTime(2010, 1, 1, 10, 0, 0)) //Set the min time of the Calendar.
.Max(new DateTime(2010, 1, 1, 20, 0, 0)) //Set the min date of the Calendar.
.Value(DateTime.Now) //Set the value of the Calendar.
You can subscribe to all Calendar events.
//Handle the navigate event inline.
To reference an existing Kendo UI Calendar instance, use the jQuery.data() configuration option. Once a reference is established, use the Calendar API to control its behavior.
//Put this after your Kendo UI Calendar for ASP.NET MVC declaration.
//Notice that the Name() of the Calendar is used to get its client-side instance.