This is a very basic question – how do I create Kendo UI controls/how do get the Kendo widgets to show?
eg. I tried this for the calendar control.
I copied the js files to a js folder
- min
- web
- vsdoc
- calendar
and linked the 2 style files.
when I have the following script to instantiate a calendar widget
<script>
$(document).ready(function () {
$("#cal").kendoCalendar({
value: new Date(),
min: new Date(1950, 0, 1),
max: new Date(2049, 11, 31)
});
});
</script>
But I get an error at instantiating the calendar at .kendoCalendar().
Can someone help me with this?
Thanks in advance.
You just need to include:
kendo.web.min.jsincludes all the widgets. It’s enough including this.You didn’t mention
jquery.min.js. Check that you also have it.This is the HTML:
EDIT: Complete example using files fomr KendoUI CDN: