问题
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?
来源:https://stackoverflow.com/questions/17633955/setting-the-group-option-dynamically-not-working-in-ng-grid-2-0-7