I'm doing MVC4 with razor. I have tried using the datetimepicker with a grid and without and I get the same result. I suspect it is my CSS but I'm not very proficient at doing CSS. I use the kendo.common.min.css and kendo.default.min.css. I've changed the theme slightly for width and fonts on the grid.
My editor template is as follows, though I have the same problem when I use datetimepicker outside of grid.
My editor template is as follows, though I have the same problem when I use datetimepicker outside of grid.
@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.