Setting the group option dynamically not working in ng-grid 2.0.7

霸气de小男生 提交于 2019-12-13 04:22:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!