- Home
- Forum
- Angular - EJ 2
- Grid group without indentation
Grid group without indentation
Hello Team
I am reviewing your EJ2 grid widget with grouping, I would like to show the groups of dataset
- But due to limited real estate on screen, I would like to remove indentation form the child list
- 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
SIGN IN To post a reply.
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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
RM Raj Maheshwari
- Nov 21, 2021 06:14 AM UTC
- Nov 29, 2021 12:10 PM UTC