Search code examples
jquerykendo-uikendo-asp.net-mvc

jQuery(...).kendoDatePicker is not a function


Risking to get my reputation downsized, I am new to Kendo UI and stuff, and I read a lot about this error, but couldn't find anything to help me.

Here is my view

@model ClothingSite.Models.Register
@using Kendo.Mvc.UI;
@{
    ViewBag.Title = "ThunderBird Clothes";
}
<head>
    <script src="@Url.Content("~/Scripts/jquery.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.web.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>

</head>

<h2>Title Legend</h2>
@(Html.Kendo().DatePicker().Name("Birthday"))
<link rel="stylesheet" href="@Url.Content("~/Content/styles/kendo.common.min.css")">
<link rel="stylesheet" href="@Url.Content("~/Content/styles/kendo.default.min.css")">

Am I missing any reference?I have the scripts from the Free Trial Telerik Kendo UI And the full error

IndexButton:78 Uncaught TypeError: jQuery(...).kendoDatePicker is not a function at HTMLDocument. (IndexButton:78) at i (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.K (jquery.min.js:2)


Solution

  • You forgot to add the main kendo ui JS file. based on your kendo ui version you can add kendo.all.min.js file in your project.

    For step by step guidance please look into this.

    Let me know if any concern.