ui-grid
ui-grid copied to clipboard
Check all in header, without selecting all
We want a user to be able to select only one line, but to be able to check multiple lines. Therefore we set multiselect: false, and implemented checkboxes.
Now we want the user to be able to check and uncheck all lines by checking a single checkbox in header. To do this we let ng-model="allChecked" in header and ng-checked="allChecked" in cell.
Checking all in the header cell does not work, but if we place a checkbox outside of the grid, we are able to check all, by checking that checkbox.
You can view a plunker here built upon your Master/Details Example.
Any help would be greatly appreciated.