I am trying to use Kendo Grid in a view.
In the main index.html I have reference for the required css and js files:
<link href="kendo-phcc/styles/kendo.mobile.all.min.css" rel="stylesheet"><script src="kendo-phcc/js/jquery.min.js"></script><script src="kendo-phcc/js/kendo.mobile.min.js"></script>I have a list view in the main index.html and each list item refers to a separate external view which is defined in it's own html file.
In the view html file I have this :
<div data-role="view" data-init="initGrid" data-title="Restaurants" id="restaurantsView"> <div id="grid"></div></div><script> function initGrid() { //This alert was displayed alert("Dummy"); $("#grid").kendoGrid({ columns: [{ field: "Attribute", title: "Attribute" }, { field: "Value", title: "Value" }], dataSource: { data: [{ Attribute: "Mall/Location", Value: "City Center/The Mall/Pearl" }, { Attribute: "ShopName", Value: "Gold Gourmet" }] } }); }; </script>I have seen this forum and made sure that I made no such mistakes such as repeating jquery reference or not including required files.
http://stackoverflow.com/questions/32917273/uncaught-typeerror-kendogrid-is-not-a-function
But still I have the error
Could you please help me out in this problem.
The app was created from Telerik Platform so it already had the required css and js files included.
I also tried creating a separate folder and manually adding all the required files from the Kendo UI Professional zip that I downloaded from my account.
But still I have the same issue.
I think this is a very basic question but I am just starting with kendo and Telerik so I would really appreciate your help
