or
<%= Html.Kendo().ComboBox() .Name("contactsAc") .Filter("startswith") .Placeholder("Select a Contact") .MinLength(3) .HtmlAttributes(new { style = "width:250px;" }) .DataSource(source => source.Read(read => read.Action("ContactSelect", "TrainingSchedule") .Data("onAdditionalData")) .ServerFiltering(true)) .DataTextField("Name") .DataValueField("Id") .AutoBind(false) .Events(e => e.Select("onSelect"))%><script language="javascript" type="text/javascript"> function onSelect(e) { var dataItem = this.dataItem(e.item.index()); var contact = new Object(); contact.ContactId = dataItem.Id; contact.ContactName = dataItem.Name; vm.assignedContacts.push(contact); kendo.bind($(document.body), vm); }</script>$(function () { $("#startDate").kendoDatePicker(); $("#endDate").kendoDatePicker(); $("#detailForm").kendoWindow({ height: "450px", title: "Training Schedule Detail", visible: false, width: "600px" }).data("detailForm"); $grid.data = $("#grid").data("kendoGrid"); $("#detailForm").submit(function () { if (validateData()) { formSubmit(); } return false; });messages.eventmessages: { cancel: "Annuleer", save: "Opslaan", today: "Vandaag", event: "Boeking", },editable: { template: $("#editor").html(), confirmation: "Wilt u deze boeking daadwerkelijk verwijderen?", resize:false, },$("span.k-window-title").html("Boeking");$("div.k-edit-buttons").css("display","none");@model DateTime?
@(Html.Kendo().DateTimePickerFor(m => m)
.Min(new DateTime(2010, 1, 1, 10, 0, 0)) //Set min time of the datetimepicker
.Max(new DateTime(2010, 1, 1, 20, 0, 0)) //Set min date of the datetimepicker
.Value(DateTime.Now) //Set the value of the datetimepicker
)
To use without the grid, i just included:
<div id='to-do'>
@(Html.Kendo().DateTimePicker()
.Name("datetimepicker")
.Value(DateTime.Now)
)
</div>
My datetimepicker shows up with the month on top, nothing as far as the days, and then a bunch of gray space to the right. I'm at a loss as to what to try or what to furnish you.