How to create an empty group in ng-grid

爱⌒轻易说出口 提交于 2019-12-24 02:09:10

问题


I know that ng-grid uses aggregation to group rows[1], so it's not officially supported.

Is there a nice workaround to create a header of aggregation without a row? Or way to use an empty row and don't display it?

I need to aggregate users by group, but I have to list all groups without users too.

Something like:

Group 1 (users : 5) -User 1 -User 2 -User 3 -User 4 -User 5 Group 2 (users: 0) Group 3 (users: 1) - User 6

[1] How to set aggregation with grouping in ng-grid

来源:https://stackoverflow.com/questions/21149529/how-to-create-an-empty-group-in-ng-grid

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