Hi,
We really need some guidance on this functional scenario:
- We have a grid where each row has a checkbox column
- Each group also has a checkbox
- The group checkbox should be checked if all the checkboxes for rows in the group are checked, otherwise it should be unchecked
- Checking or unchecking the group checkbox sets all the rows to that value as well
- Every time a row checkbox is checked, each parent group should also re-evaluate whether it needs to be checked or unchecked as well
I've added a GroupDescriptor to create the group, and have specified the GroupHeaderTemplate to show a checkbox next to the group label, which is all good.
However I'm really unsure how to implement the actual behaviour here (preferably using MVVM approach).
A working sample would be greatly appreciated!
Thanks,
Sam
We really need some guidance on this functional scenario:
- We have a grid where each row has a checkbox column
- Each group also has a checkbox
- The group checkbox should be checked if all the checkboxes for rows in the group are checked, otherwise it should be unchecked
- Checking or unchecking the group checkbox sets all the rows to that value as well
- Every time a row checkbox is checked, each parent group should also re-evaluate whether it needs to be checked or unchecked as well
I've added a GroupDescriptor to create the group, and have specified the GroupHeaderTemplate to show a checkbox next to the group label, which is all good.
However I'm really unsure how to implement the actual behaviour here (preferably using MVVM approach).
A working sample would be greatly appreciated!
Thanks,
Sam