I wanted to be able to make available some examples of the Kendo grid when asking questions here. I have put the most basic one here, but nothing shows up.
The code is:
JavaScript
x
26
26
1
<div data-ng-app="app">
2
<div data-ng-controller="Grid as vm">
3
<div kendo-grid='grid' k-options="vm.options"></div>
4
</div>
5
</div>
6
(function () {
7
angular.module("app", ["kendo.directives"])
8
.controller("Grid", Grid);
9
10
function Grid() {
11
var vm = this;
12
var gridData = [{
13
col1: 'data1',
14
col2: 'data2'
15
}, {
16
col1: 'data1',
17
col2: 'data2'
18
}];
19
20
vm.options = {
21
dataSource: gridData,
22
editable: true
23
};
24
}
25
})();
26
Should this be possible, have I missed something? (The sample runs locally).
Advertisement
Answer
You just need to change the way that the scripts are included in the fiddle. Instead of “onLoad”, use “No wrap”.