or
<!doctype html> <html> <head> <title>Admin: Users</title> <link href="styles/kendo.black.min.css" rel="stylesheet"/> <link href="styles/kendo.default.min.css" rel="stylesheet"/> <script src="js/jquery.min.js"></script> <script src="js/kendo.core.js"></script>
<script src="js/kendo.validator.js"></script> <script src="js/kendo.model.js"></script> <script src="js/kendo.data.js"></script> <script src="js/kendo.pager.js"></script> <script src="js/kendo.sortable.js"></script> <script src="js/kendo.draganddrop.js"></script>
<script src="js/kendo.groupable.js"></script> <script src="js/kendo.grid.js"></script> <script src="js/kendo.binder.js"></script> <script src="js/kendo.editable.js"></script> <script src="js/kendo.popup.js"></script> <script src="js/kendo.calendar.js"></script>
<script src="js/kendo.datepicker.js"></script> <script src="js/kendo.numerictextbox.js"></script> <script> function createRandomData(count) { var data = []; data = {"account_recs":[{"FirstName":"Graham","SecondName":"Fourie"}],"totals":1}; return data; } </script> </head> <body> <a href="../index.html">Back</a> <div class="description">Basic usage</div>
<div id="example" class="k-content"> <div id="grid"></div> <script> $(document).ready(function () { $("#grid").kendoGrid({ dataSource: { data: createRandomData(1) } navigatable: true, pageable: true, height: 400, toolbar: ["create", "save", "cancel"], columns: [ "SecondName", { field: "FirstName", width: "100px" }, { command: "destroy", title: " ", width: "110px" }], editable: true }); }); </script> </div> </body> </html>


var app = new kendo.mobile.Application(document.body);
I get error in chrome console and loading div is constantly showing
Uncaught TypeError: Cannot call method 'onShowStart' of undefined
I was check that all files was included in my javascript folder and they were included.
I use trial version so all my files are minified. Do you have any idea what was wrong?
This is my site code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<%= stylesheet_link_tag :application, "kendo.mobile.all.min" %>
<%= javascript_include_tag "jquery.min", "kendo.all.min", "kendo.culture.hr-HR.min" %>
</head>
<body>
<div data-role="header">Header</div>
<div data-role="content">Hello world!</div>
<div data-role="footer">Footer</div>
<script type="text/javascript">
var app = new kendo.mobile.Application(document.body);
</script>
</body>
</html>
Sorry for my bad english.
I must say that KendoUI looks really good. It seems very solid. The features already existing is great, but my concern is about the features I need but which is not part of Kendo UI. For example I need the Grid control to show PrevPage and NextPage buttons instead of clickable page numbers like the KendoGrid does. How easy is it to extend/customize the controls? Is the kendo team willing to help with questions like that?
I have tried a little and managed to add the mentioned features to the KendoGrid control like this:
jQuery.fn.kendoCustomGrid = function (c) { if (c.pageable === false) { this.kendoGrid(c); return; } c.pageable = false; this.kendoGrid(c); this.append("<div class='k-grid-pager'><button id='prevPage' class='k-button'>Prev</button><button id='nextPage' class='k-button'>Next</button></div>"); $('#prevPage').on("click", function (event) { c.dataSource.page(c.dataSource.page() - 1); }); $('#nextPage').on("click", function (event) { c.dataSource.page(c.dataSource.page() + 1); }); this.on("keydown", function (event) { if (event.keyCode === 34) { //PgDn c.dataSource.page(c.dataSource.page() + 1); } if (event.keyCode === 33) { //PgUp c.dataSource.page(c.dataSource.page() - 1); } }); };I can then use $(selector).kendoCustomGrid() instead of $(selector).kendoGrid()
Is this a good way to extend kendo controls? Or is there a better/preferred way?