- Home
- Forum
- Angular - EJ 2
- left align row checkboxes
left align row checkboxes
I have a checkbox column in the treegrid. There is an indent to the left of the checkbox so it does not align with the header checkbox.
I see there are two spans before the checkbox with a width of 10 that are causing the indent. What would be the best way to remove the indent without causing issues with other treegrid functionality?
<span class="e-icons e-none" style="width: 10px; display: inline-block"></span>
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
JR
Jagadesh Ram Raajkumar
Syncfusion Team
September 28, 2021 10:19 AM UTC
Hi Zachary,
Greetings from Syncfusion Support.
Query: To remove indent spacing to the left of the checkbox.
Query: To remove indent spacing to the left of the checkbox.
Based on your requirement, you can use queryCellInfo event to individually configure the cell’s styles. By default in the treegrid the intend set is to show difference between both parent and child. As you want to remove some indent spacing, you can use the below code.
|
[app.component.html]
<ejs-treegrid [dataSource]='data' height = '400' autoCheckHierarchy='true' childMapping='subtasks' [treeColumnIndex]='1' (queryCellInfo)=queryCellInfo($event)>
<e-columns>
......
</e-columns>
</ejs-treegrid>
|
|
[app.component.ts]
|
Screenshots:
1. Without removing indent space.
1. Without removing indent space.
2. Indent space removed.
Please refer to the below sample and documentation,
Sample: https://stackblitz.com/edit/angular-f169200?file=app.component.ts
Documentation: https://ej2.syncfusion.com/angular/documentation/api/treegrid/#querycellinfo
Please get back to us for further assistance.
Regards,
Jagadesh Ram
Jagadesh Ram
Marked as answer
ZA
Zachary
September 28, 2021 07:08 PM UTC
Worked perfectly. Thanks!
JR
Jagadesh Ram Raajkumar
Syncfusion Team
September 29, 2021 06:27 AM UTC
Hi Zachary,
Thanks for the update.
We are glad that your queries have been resolved.
Please get back to us for further assistance.
We are glad that your queries have been resolved.
Please get back to us for further assistance.
Regards,
Jagadesh Ram
Jagadesh Ram
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
ZA Zachary
- Sep 27, 2021 09:42 PM UTC
- Sep 29, 2021 06:27 AM UTC