-->

Setting the group option dynamically not working i

2019-09-09 08:24发布

问题:

I am creating a simple grid and getting the data from a json for both the columnDefs and the groups.

Setting columnDefs works properly, with

data: 'gridData' // Where gridData is $scope.gridData.

but setting

groups : $scope.groupsFieldsFromServer // This is ['fieldname']

is not working, it is just displays the grid as is, but the intended pre-grouping is not happening.

Any help?