Hi support,
on a page (asp.net mvc 461) where first load is critical (and where I just need the kendo datetimepicker) I'm trying to "just include the required kendo.xxx.min.js files" (instead of just including kendo.all.min.js) (using the Audit tab in Chrome I'm told that the change reduces the load time from 11 sec to less than 3 sec).
From this page https://docs.telerik.com/kendo-ui/intro/supporting/scripts-editors I setup my bundle like this:
bundles.Add(
new ScriptBundle("~/bundles/minimalJs")
.Include("~/Scripts/jquery-3.3.1.min.js")
.Include("~/Scripts/bootstrap.min.js")
.Include("~/Scripts/kendo/kendo.core.min.js")
.Include("~/Scripts/kendo/kendo.data.min.js")
.Include("~/Scripts/kendo/kendo.binder.min.js")
// req for datetimepicker (see https://docs.telerik.com/kendo-ui/intro/supporting/scripts-editors)
.Include("~/Scripts/kendo/kendo.userevents.min.js")
.Include("~/Scripts/kendo/kendo.selectable.min.js")
.Include("~/Scripts/kendo/kendo.calendar.min.js")
.Include("~/Scripts/kendo/kendo.popup.min.js")
.Include("~/Scripts/kendo/kendo.datepicker.min.js")
.Include("~/Scripts/kendo/kendo.timepicker.min.js")
.Include("~/Scripts/kendo/kendo.datetimepicker.min.js")
.Include("~/Scripts/moment.min.js") // todo consider moving to view
.Include("~/Scripts/fingerprint2.min.js") // todo consider moving to view
.Include("~/Scripts/minimal.js")
);
In my view I do this:
<input id="datetimepicker" />
$("#datetimepicker").kendoDateTimePicker({
value: new Date()
});
The input element does not, however, render into a kendoui datetimepicker (see screenshot date-time-picker-1.png)
NB if I use the example from https://demos.telerik.com/kendo-ui/datetimepicker/index and initialize using the option dateInput: true I'm getting the following error:Uncaught TypeError: k.DateInput is not a constructor
I have also prepared an example the illustrate my issue: https://dojo.telerik.com/UXEbUMiY/3
What files must I include as a minimum to be able to use the kendo ui datetimepicker?
Thanks in advance.
Best regards
Morten