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

Horizontal scroll always appear

Hi

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:



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

Thanks Konrad

3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team September 12, 2019 01:44 AM

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. 
 
Regards, 
Ashokkumar B. 



KL Konrad Lowczak September 13, 2019 07:00 AM

Thank You for Your help. It works.

Best regards
Konrad


AB Ashokkumar Balasubramanian Syncfusion Team September 16, 2019 12:38 AM

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


Loader.
Live Chat Icon For mobile
Up arrow icon