I set the CheckBoxVixibility property of the Column.Header to Alwasy and the CheckBoxSynchronization property to HeaderCheckBoxSynchronization in order to check and ucheck all rows.
However, after grouping the grouping the grid, the header check box does not work.
How can I use the header checkbox even after grouping??
Also, can I add a checkbox to every group to check and uncheck the rows of that group??
Hi,
Thank you for contacting Infragistics Developer Support.
I have tested using Header CheckBox after grouping and it seems to me that it behaves as expected. The column with the checkbox still has it and it checks/unchecks the rows depending on the CheckBoxSynchronization property. What features do you think are not working? Do you want the checkbox to appear in the group by row itself? Do you group by the column with the checkbox?
I have attached my sample, let me know if it is missing something. Based on it, please answer my questions and I will be glad to continue investigating this case.
I am looking forward to your reply.
Thank you for your sample code.
I find out that set the HeaderPlacement property to "OncePerGroupedRowIsland", so header check box does not work.
I'd like to make the grid have below functions that
1) check and uncheck all rows when I click column header check box even after grouping
2) check and uncheck all rows just in a group when I click group header check box
Thank you for the clarification.
1) You can achieve this by setting the CheckBoxSynchronization property to “Band”. This will check/uncheck all the rows within the band.
2) You can add a CheckBox to the GroupByRow with the help of the CreationFilter interface. In it you can add a CheckBoxUIElement at the start of a GroupByRowUIElement and handle the element click event for the CheckBoxUIElement. In this event you can get all of the cells from the checkbox column and set their value according to the CheckedState of the CheckBoxUIElment. For more information on the CreationFilter interface please visit this link: http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/HTML/Win_Creation_Filter.html
I have modified my sample in order to demonstrate these suggestions.
Please let know if you have any additional questions.
Thank you for your response.
Then, is it possible that the state of the group check box made by CreationFilter can be changed with the check box of a single row in a group.
For example, I checked the group check box to select all, and then if I uncheck a check box of a single row in a group, then the state of the group check box also should be unchecked.
Also, if I check all of check boxes in a group, then the state of the group check box also should be checked.
Thank you for the reply.
As you have a private case in our system (CAS-141645-J9Y4F5) I will provide you with support through it. You can view your active support tickets from this link:
https://ko.infragistics.com/my-account/support-activity
I found out the problems in your sample code.
I can't exactly tell you the way to reproduce the problem because it is occurred randomly.
However, I tried to reproduce it, it's always occurred.
In your sample code, there are four groups.
I randomly expand and collapse four groups such as 1 expand, 2 expand, 1 collapse, 3 expand, 1 expand, 4 expand, 4 collapse, 2 collapse....
When I do these works repeatedly, suddenly the check box of 3 or 4 groups disappear and I can't recreate the check box in that groups.
I think that if you repeatedly do it 3~40 times, you can find out the problem.
p.s In this forum, I can not paste picture, which I captured, from the clipboard.
Because of the secret policy, I can't upload files, such as .png or .jpg, from the computer.
Hello,
Thank you for the feedback.
I tried to reproduce this in the sample and I didn’t notice such thing. Can you be more specific with the steps to reproduce this? Can this be reproduced in my sample or you noticed it in your project? Does the amount of group by columns matter (does it happen when there is only one group by column, or you need more)? Does the speed with which you expand/collapse the groups matter? It would be really helpful, if you are able to make a small video demonstrating how to reproduce the issue.
Can you solve the problem that I found out?
I don't know why the check boxes suddenly disappeared.
I found out one more problem in your sample code.
When I repeatedly expand and collapse the groups, the check box of some groups suddenly disappear.
I cannot tell you the case exactly, but sometimes occurred.