Hi,
I've placed an MVC wrapped DateTimePicker inside a kendo template, but the problem I'm having is setting the value. Here's the code I'm using:
(Html.Kendo().DateTimePicker()
.Name("activeTime-#=Ordinal#")
.Min(new System.DateTime(1970, 1, 1, 0, 0, 0)) // Epoch
.Format("MM-dd-yyyy HH:mm")
.TimeFormat("HH:mm")
.HtmlAttributes(new { style = "width:100%" })
.Value("#: kendo.toString(ActiveDT, 'MM-dd-yyyy HH:mm') #")
.ToClientTemplate()
)
This loads a DateTimePicker inside the list view, however the value of the picker is always blank. I've tried a few things to fix it (deferring, outputting a javascript date object instead of a string, changing everything to create the datetimepicker through javascript rather than the wrapper) and I'm at a bit of a dead end, I was just wondering where exactly I'm going wrong.
Thanks,
Kevin