Here my code to hide a column in kendo grid.
var grid = angular.element("#priceCardGrid").data("kendoGrid");
for (var i = 0; i < priceCardModalScope.priceCard.length; i++) {
if (priceCardModalScope.priceCard[i].shouldAcceptQty == true) {
grid.hideColumn(1);
}
}
but it shows error like
Uncaught TypeError: Cannot read property 'hideColumn' of undefined