I need to have 2 buttons in a cell. One is calling some function, other is disabling previous button that calls some function. I tried this(part of my template in a column):
return '<button kendo-button class="validate" ng-click="MyFunction($event)">' + txt.TXT_SEND_TO_SAP + '</button>' + ' ' +
'<button kendo-button ng-click="Disable($event)">disable</button>' + ' '
and this function that calls disabling:
$scope.Disable = function (e) {
var data = $scope.grid.dataSource.view();
for (var i = 0; i < data.length; i++) {
$(data[i]).prev().prop("disabled", true)
}
}
what I do wrong? Thanks