Checkbox next to Groupment columns line

Hi Team !

We found a method in your forum to create a checkbox next to groupment. This checkbox check/uncheck all the elements in the group.
We improved it because of grid events in the native checkbox but there is always some bugs.

Here is the html code :


Here is the renderer :



1 - In this custom developpment, when the cursor is hover groupment, a title "of html code" appear, how to removed it ?

 
2 - When a second group is added, our custom code can't select elements because the only element is a group, how to do so ?


3 - Is there a native implementation or solution to have checkbox in grouped columns ?

4 - If no, is it in the roadmap ?

Regards,

1 Reply

PK Prasanna Kumar Viswanathan Syncfusion Team March 9, 2020 05:12 PM UTC

Hi Mohamed, 
 
Greetings from Syncfusion support. 
 
Based on your code example we found that you have used groupSettings CaptionTemplate to render the checkbox next to group element. In the template you have binded the change event “checkGroupedRows to check/uncheck all the elements in the group. 
 
Query 1: “In this custom development, when the cursor is hover groupment, a title "of html code" appear, how to removed it ? 
 
Before we proceed with above query, we need some clarifications, 
 
1. In your code example we found that you have used mat-checkbox to render the checkboxes. Can you please share the purpose of using “mat-checkbox”  to render the checkboxes? 
 
2. Share the complete Grid rendering code. 
 
Query 2 : “When a second group is added, our custom code can't select elements because the only element is a group, how to do so ? 
 
In checkGroupedRows event you have check/uncheck all the elements in the group. So, please share the code example checkGroupedRows it will help us to find out the root cause for the above issue. 
 
Query 3: “Is there a native implementation or solution to have checkbox in grouped columns ? 
 
No, there is no native implementation to have checkbox in grouped columns.  
 
Query 4: “If no, is it in the roadmap ? 
 
It is a unique requirement and we did not consider this as a feature. So, we will achieve your requirement using workaround solution. 
 
Regards, 
Prasanna Kumar N.S.V 


Loader.
Up arrow icon