简体   繁体   中英

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

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?

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 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM