TreeView horizontal scrollbar

Hi, I'm currently using an ej2 syncfusion TreeView control to do some nested api listing on a page. It works well, but the issue I'm having with it that I can't seem to find a work around for is the scrollbar that seems to be part of the TreeView itself, the horizontal scrollbar. I can't seem to be able to force the scrollbar to the bottom of the page and have it stay there. The containing div height is 100% and takes up the full space available to it, but when expanding the treeview, the scroll bar always appears like this:
Image_6777_1759167539309
I have tried multiple approaches with css to force it down and moved it into a new div with flex properties but the best that I seem to be able to do is set the height of the e-list-parent class to 100% but that creates other problems with multiple scrollbars and layout breakage.

Currently the html is and css are not very complex neither is the javascript, and the javascript doesn't perform any styling manipulation on the page currently. Is this possible to do? Is there a specific rule, or element thats needed to accomplish getting the treeview's horizontal scrollbar to stick to the bottom of the containing div? It seems to be part of the e-list-parent e-ul element but applying any css changes to this gives unwanted result

<style>
#api-container {
        width: 20%;
        height: 100%;
        overflow-y: auto;
    }

    #treeview-container {
        flex: 1 1 auto; /* Grow to fill remaining space */
        overflow: auto; /* Optional: scroll if content overflows */
    }
   
    #schema-header {
        background-color: #f0f0f0;
        padding: 10px;
        font-weight: bold;
        border-bottom: 1px solid #ccc;
        position: sticky;
        top: 0;
        z-index: 10;
    } </style>

<main id="api-explorer">

        <div class="flexing-container" id="operations-container">
            <div id="horizontal-splitter" class="no-border-splitter">
                <div id="api-container">
                    <div id="schema-header">
                        API's
                        </div>
                    <div id="treeview-container">
                        </div>
                </div>
            <div id="sql-results-container">
                <div id="vertical-splitter" class="no-border-splitter">
                    <div style='display: flex; flex-direction: column;'>
                        <div id="request-container" class="content">
                            </div>
                    </div>
                    <div id="element">
                        <div style="display: none;" id="loadingDiv"><div class="explorer-loader"></div></div>
                            <div id="overlay">    
                                </div>
                        <div class="e-tab-header">
                            <div>Results</div>
                            <div>JSON</div>
                            <div>Messages</div>
                        </div>
                    <div class="e-content">
                    <div>
                        <div id="results-container" class="content"></div>
                    </div>
                    <div>
                        <div>
                            <div id="json-container" class="content">
                                <div id="json-display-editor" style="height: 100%; width: 100%;"></div>
                            </div>
                        </div>
                    </div>
                    <div>
                        <div id="messages-container" class="content"></div>
                    </div>
                </div>
                </div>
            </div>
        </div>
    </div>
</main>

3 Replies

SS Sivakumar ShunmugaSundaram Syncfusion Team October 1, 2025 12:13 PM UTC

Hi Mark,
On further validation with the shared details, I understand that your requirement is to position the horizontal scrollbar of the Syncfusion EJ2 TreeView at the bottom of the containing div, ensuring it sticks to the container edge below the sticky header, without internal scrollbars, layout breakage, or nested scrolling issues when nodes with wide content expand.
To achieve this, we updated the following key items:
    • Added a class="custom-tree" to the <div id="tree"> element in HTML for targeted root styling.
    • Introduced new CSS rules to stretch the TreeView root (#tree.custom-tree) to full container dimensions and set .e-treeview { overflow: visible; } to prevent internal scrolling, allowing overflow to bubble up to the outer container.
    • Simplified #treeview-container to overflow: auto; for unified horizontal (bottom-fixed) and vertical scrolling at the container level.


  • Please check the shared details and get back to us if you need any further assistance.

    Regards,

    Sivakumar S



    MG Mark Griffiths October 3, 2025 01:09 PM UTC

    Hi  Sivakumar, this is perfect thank you very



    LD LeoLavanya Dhanaraj Syncfusion Team October 7, 2025 05:40 AM UTC

    Hi Mark,


    Thanks for the update. Please get back to us if you need any further assistance in future.


    Regards,

    Leo Lavanya Dhanaraj


    Loader.
    Up arrow icon