let grid = $("#gridLogKinerja").data("kendoGrid"); if(grid){ grid.setOptions($scope.mainGridOption); }
why use $scope, because when I work using angularjs 2014-2017, you can change it with variables according to the language used.
$scope.mainGridOption in it there are custom columns check kendo documentation Kendo UI
let grid = $("#gridLogKinerja").data("kendoGrid");
if(grid){
grid.setOptions($scope.mainGridOption);
}
why use $scope, because when I work using angularjs 2014-2017, you can change it with variables according to the language used.
$scope.mainGridOption
in it there are custom columns check kendo documentation Kendo UI