Selecting group level row on selecting all event on ui-grid

大城市里の小女人 提交于 2019-12-25 04:33:24

问题


I am trying to react on event when user clicks on select all event on header of ui-grid. All rows do get selected, which is expected behavior, but high level group rows are not selected which in my opinion is counter-intuitive for a user. You can see example here: http://embed.plnkr.co/rUsK0LfGF3ws8vhsc9sR/

I know that triggered event is:

gridApi.selection.on.rowSelectionChangedBatch($scope,function(rows){
          // do something
});

But when I iterate through rows passed to function I don't see the ones that are group level rows so I could select them. Is there a way to do this?


回答1:


As per the documentation HERE

Group header rows cannot be edited, and if using the selection feature, cannot be selected. They can, however, be exported.

Have a look at the below screen shot which is taken from Complex grouping found here



来源:https://stackoverflow.com/questions/41073956/selecting-group-level-row-on-selecting-all-event-on-ui-grid

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