Open sami1riaz opened 6 days ago
Right now the stackblitz doesnt load so cant check this. But do note we have some settings:
https://main-enterprise.demo.design.infor.com/components/datagrid/test-tree-multiselect.html
Maybe something around that?
hmm even I can't access that link. Adding the editor URL: https://stackblitz.com/edit/ids-quick-start-1761-jtfalv?file=src%2Fapp%2Fapp.component.ts
https://main-enterprise.demo.design.infor.com/components/datagrid/test-tree-multiselect.html this example reproduces the issue.
The other two don't select children so they don't apply to my scenario
@sami1riaz ok i see what you mean now on https://main-enterprise.demo.design.infor.com/components/datagrid/test-tree-multiselect.html
All you have to do is click twice to deselect all. The first click we chose to select all the second will deselect all.
I do not think we can change this behavior at this point
@tmcconechy that is not the issue, the issue is that this behaviour is not consistent with the select all checkbox. If I have to click twice to deselect all for the parent row, I should have to do the same for the select all checkbox as well. ( the select all checkbox deselects on the first click right now)
I've updated the description of this issue a bit, hope that helps.
@sami1riaz ok maybe you have a point with the other one. Will review when we can
Describe the bug When you select a child row in a tree grid, the parent row's selection checkbox displays a hyphen indicating partial selection or indeterminate state. Clicking on the parent row's selection checkbox selects all child rows first. Clicking on it again will deselect all child rows. This behaviour is inconsistent with the select all checkbox as it deselects all the first time you click on it while it is in the indeterminate state.
To Reproduce Steps to reproduce the behavior:
Expected behavior The behaviour should be consistent between parent select checkbox and select all checkbox. Either deselect all or select all checkbox after clicking on a checkbox indicating partial selection (or indeterminate state )
Version
Screenshots![image](https://github.com/infor-design/enterprise-ng/assets/22355825/169d6771-4aea-4ee6-a9ac-1bf128a2b3c9)
Platform
Additional context stackblitz: https://ids-quick-start-1761-jtfalv.stackblitz.io