I have a ui-grid whose first column is:
columnDefs : [$scope.getGroupIdColumn(),
$scope.getKlasCodeColumn(),
$scope.getKlasNummerColumn(),
$scope.getNaamColumn()
]
where getGroupIdColumn is:
$scope.getGroupIdColumn = function () {
var result = new Object();
result["name"] = 'GroupID';
result["visible"] = false;
result["type"] = 'number';
if ($scope.groupingEnabled) {
console.log("komt toch: " + $scope.speedDial.grouping);
var grObj = new Object();
grObj["groupPriority"] = 0;
result["grouping"] = grObj;
return result;
}
return result;
}
Other column definitions are also like this.
If groupingEnabled is true, i have grouping. If false, without grouping. Until here, it works as excepted.
BUT
If i redefine that column, or even all the grid-options, it remains same as it is. Thus, if i have a grid with grouping and i redefine all grid options, i have still grid with grouping.
What should be done?
PS: gridApi.core.refresh(), $evalAsync().. are tried and no any improvement.