We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Treeview row height Angular 7+, TypeScript3+

Thread ID:





142258 Jan 24,2019 08:24 AM UTC Jan 25,2019 12:34 PM UTC Angular - EJ 2 1
Tags: Treeview
Laurens Albers
Asked On January 24, 2019 08:24 AM UTC


The treeview nodes(with checkbox) have too much whitespace between them. For my situation they need to be much more closer to each other. So basically, the height is too high.
Can you tell me what i am missing? OR do you have an example code with the right classes I should edit?

I have tried the following:

.e-treeview .e-list-text {
  font-size: 12px;

.e-treeview .e-text-content {
  height: 24px;
  padding: 0;

.e-treeview .e-fullrow {
  height: 24px;

.e-treeview .e-list-item {
  padding: 0;


Laurens Albers

Christopher Issac Sunder K [Syncfusion]
Replied On January 25, 2019 12:34 PM UTC

Hi Laurens, 

Thank you for contacting Syncfusion support. 

You can achieve your requirement by adding cssClass to your TreeView component and customizing the css for the below classes, 

.custom .e-list-item .e-text-content.e-icon-wrapper { 
    margin-bottom: 0px; 
.custom .e-list-item .e-text-content { 
    margin-bottom: -4px; 
    padding: 0px; 
.custom .e-list-parent.e-ul { 
    margin: 0px; 
    padding-left: 40px; 

We have prepared a sample for your reference.
Sample: https://stackblitz.com/edit/angular-kttxnb-5y4rg2?file=check-box.html  

Please check it and let us know if you have any more concerns. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon