Grid group without indentation

Hello Team

I am reviewing your EJ2 grid widget with grouping, I would like to show the groups of dataset 

  1. But due to limited real estate on screen, I would like to remove indentation form the child list
  2. Also we would like to remove the "select all" checkbox, but replace it with label "copy".

https://stackblitz.com/edit/angular-4qldud-iebw8a?file=app.component.ts

From 


To



3 Replies

RR Rajapandi Ravi Syncfusion Team November 22, 2021 11:34 AM UTC

Hi Mohit, 

Greetings from Syncfusion support 

From your update we could see that you like to hide the expand/collapse icon and also hide the header checkbox and instead of header checkbox you like to display the label “copy”. Based on your query we have prepared a sample and hide the header checkbox by using dataBound event of Grid and also, we have hide the expand/collapse icon by using CSS. Please refer the below code example and modified sample for more information. 

Index.html 

.e-grid .e-recordpluscollapse {  //hide the expand/collapse icon 
    display: none; 
  } 
  .e-grid .e-recordplusexpand { 
    display: none; 
  } 
  </style> 


App.component.ts 

dataBound() { 
            (document.getElementsByClassName('e-checkbox-wrapper')[0] as any).style.display = 'none'; 
            var y = document.createElement("LABEL"); 
            y.innerText = "Copy"; 
document.getElementsByClassName('e-checkbox-wrapper')[0].parentNode.appendChild(y); //appending label element 




Regards, 
Rajapandi R 



RM Raj Maheshwari November 28, 2021 06:28 PM UTC

Thank you Rajapandi


is it possible to fix the grouping row to go all the way to end.






RR Rajapandi Ravi Syncfusion Team November 29, 2021 12:10 PM UTC

Hi Mohit, 

Thanks for the update 

Before we start providing solution on your query, we need some information for our clarification. Please share the below details that will be helpful for us to provide better solution. 

1)             Please share your exact requirement scenario step by step with detailed description. 

2)             Please share the use case scenario about what you are trying to achieve with the grouping row. 

Rajapandi R 


Loader.
Up arrow icon