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

Horizontal scroll always appear

Thread ID:





147453 Sep 11,2019 09:22 AM UTC Sep 16,2019 08:38 AM UTC Vue 3
Tags: Treeview
Konrad Lowczak
Asked On September 11, 2019 09:22 AM UTC


I have modal dialog with treeview control inside.
When text width of one of the treeview items is longer than width of modal dialog - horizontal scroll bar appears in the bottom of treeview component.
How can I set width of treeview component and avoid showing horizontal scroll bar?

Right now it looks like this:

My purpose is behaviour like this:

Don't worry about '...'. We have component to handle this case.

Thanks Konrad

Ashokkumar Balasubramanian [Syncfusion]
Replied On September 12, 2019 09:44 AM UTC

Hi Konrad Lowczak, 
Good day to you. 
We have validated your requirement and can able to achieve this using the following styles. 
    /*customTree is a cssClass for TreeView*/ 
    .customTree li .e-list-text { 
        display: inline-block; 
        width: 12em; 
        overflow: hidden; 
        white-space: nowrap; 
        text-overflow: ellipsis; 
Kindly check the above sample and get back to us if you need any further assistance. 
Ashokkumar B. 

Konrad Lowczak
Replied On September 13, 2019 03:00 PM UTC

Thank You for Your help. It works.

Best regards

Ashokkumar Balasubramanian [Syncfusion]
Replied On September 16, 2019 08:38 AM UTC

Hi Konrad Lowczak,  
We are glad to hear that the problem has been resolved. Please let us know, if you need any further assistance. 
Ashokkumar B. 


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