Hi all,
any idea why this wouldnt work (all include and link paths checked)
I'm a newby and so lost! i'm getting the data (one record) into the array in the function createRandomData.
But i cant generate the gridview after that.
Can anyone see where i'm going wrong?
V
any idea why this wouldnt work (all include and link paths checked)
I'm a newby and so lost! i'm getting the data (one record) into the array in the function createRandomData.
But i cant generate the gridview after that.
Can anyone see where i'm going wrong?
V
<!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>