You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the selectAll button uiGrid will select ALL child rows, even child rows that are specifically set to not be selectable as long as they are in a collapsed state. If you expand a row to show the children and then click the selectAll button the child rows that are visible will not get selected as expected but the hidden children still get selected. If you hit the expandAll button in the plnkr so all rows are expanded and then click the selectAll button you will get the proper number of selected rows(4).
I put a counter at the bottom of the plnkr showing the number of selected rows to help visualize the issue.
I work around this issue by watching the batch change and manually running the isRowSelectable method on every row which should be happening by default:
When using the selectAll button uiGrid will select ALL child rows, even child rows that are specifically set to not be selectable as long as they are in a collapsed state. If you expand a row to show the children and then click the selectAll button the child rows that are visible will not get selected as expected but the hidden children still get selected. If you hit the expandAll button in the plnkr so all rows are expanded and then click the selectAll button you will get the proper number of selected rows(4).
I put a counter at the bottom of the plnkr showing the number of selected rows to help visualize the issue.
http://plnkr.co/edit/SnoBI7CoLV2xh87pl2Rb?p=preview
I work around this issue by watching the batch change and manually running the isRowSelectable method on every row which should be happening by default:
Working plnkr with my work around:
http://plnkr.co/edit/s4GMK6JbCZTUEk3SdPoq?p=preview
The text was updated successfully, but these errors were encountered: