Hi, i was trying to use kendo grid k-on-change directive, but i got some issue.
I have angular controller, like this:
function controller($scope){
var vm = this;
... some code ...
vm.onChange = _onChange;
function _onChange(data, dataItem, columns){
console.log(data);
};
}
and angular config, like this:
function config($stateProvider){
$stateProvider.state('someState.grid',{
url: "some url",
template: "grid.html"
...
controller:"GridController",
controllerAs: 'ctrl',
resolve:{
gridData: function(...)...
},
...
});
}
and grid.html is:
<div class="grid">
<div kendo-grid
k-options="ctrl.gridOptions"
k-ng-delay="ctrl.gridOptions.dataSource"
k-on-change="ctrl.onChange(data, dataItem, columns)">
</div>
</div>
So, when i try to select any item in grid, i get: "Uncaught TypeError: i[n].call is not a function" issue.
What is my mistake?
I have angular controller, like this:
function controller($scope){
var vm = this;
... some code ...
vm.onChange = _onChange;
function _onChange(data, dataItem, columns){
console.log(data);
};
}
and angular config, like this:
function config($stateProvider){
$stateProvider.state('someState.grid',{
url: "some url",
template: "grid.html"
...
controller:"GridController",
controllerAs: 'ctrl',
resolve:{
gridData: function(...)...
},
...
});
}
and grid.html is:
<div class="grid">
<div kendo-grid
k-options="ctrl.gridOptions"
k-ng-delay="ctrl.gridOptions.dataSource"
k-on-change="ctrl.onChange(data, dataItem, columns)">
</div>
</div>
So, when i try to select any item in grid, i get: "Uncaught TypeError: i[n].call is not a function" issue.
What is my mistake?