3

I'm working on asp.net mvc and using Kendo UI grid control for data retrieving, using these functionality for another application working fine problem not in code. All JavaScript and Kendo grid ui reference including when i run the application i face these error

$(document).ready(function () $ is not defined List:178 Uncaught TypeError: $(...).kendoDatePicker is not a function

multiple time. when i click on error they show me error on this lines

<script>
$(document).ready(function () {
    $("#StartDate").kendoDatePicker();
});

I add assembly on reference but noting fruitful.

Hassan Abbas
  • 467
  • 2
  • 8
  • 28

1 Answers1

7

This says that, missing jQuery source.

You should add jQuery source between head tags:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js">

References must be in head tag following order:

<head>
    <title></title>
    <link rel="stylesheet" href="styles/kendo.common.min.css" />
    <link rel="stylesheet" href="styles/kendo.default.min.css" />
    <link rel="stylesheet" href="styles/kendo.default.mobile.min.css" />

    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
</head>
Husni Salax
  • 1,968
  • 1
  • 19
  • 29