- Home
- Forum
- JavaScript - EJ 2
- TreeView horizontal scrollbar
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:
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
- 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.
Regards,
Sivakumar S
Hi Sivakumar, this is perfect thank you very
Hi Mark,
Thanks for the update. Please get back to us if you need any further assistance in future.
Leo Lavanya Dhanaraj
- 3 Replies
- 3 Participants
-
MG Mark Griffiths
- Sep 29, 2025 05:44 PM UTC
- Oct 7, 2025 05:40 AM UTC