This question is locked. New answers and comments are not allowed.
Perhaps this is a silly question, but I've been struggling with this for a little too long. I want to add a Kendo Grid to the app that I've been creating in the Telerik Platform. I follow every piece of documentation that I can find to and all that I can get is an ugly looking table of my data. I want that pretty grid with all it's functionality! Do the grid and Telerik Platform not play well together or am I just confused?
Sorry, I know this is a lot of stuff, but I'm going stir crazy over here!
Thanks in advance!
Here are the files that I've included in my index.html:
<script type="text/javascript" src="cordova.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/kendo.all.min.js"></script><script type="text/javascript" src="js/kendo.grid.min.js"></script><script type="text/javascript" src="js/index.js"></script><script src="components/tempGrid/tempGrid.js"></script>The tempGrid.js file contains the js for the grid that I want. Here is what's in it:
(function(temp,$){ var tempGrid = null, app = temp.app = temp.app || {}; app.tempGrid = { onShow: function() { $("#temp-grid").kendoGrid({ dataSource: { type: "jsdo", transport: { jsdo: app.reportJSDO }, pageSize: 10, groupable: true, sortable: true, columns: [ { field: "LOCATION_NAME", title: "Location Name" }, { field: "TEMP", title: "Recorded Temperature" }, { field: "IN_RANGE", title: "In Range?" }, { field: "EMPLOYEE", title: "Employee" }, { field: "STAMP_DT", title: "Date" }, { field: "STAMP_TM", title: "Time" } ] } }); } }})(window, jQuery);Here is the HTML in the view where I want the grid to appear:
<div id="home" data-role="view" data-title="Temperature Data" data-layout="views-layout" data-show="app.tempGrid.onShow"> <div id="temp-grid"> </div></div>