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.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to get the scroll top of the content in TreeGrid

Platform: jQuery |
Control: ejTreeGrid

In tree grid, with virtualization enabled mode the actionComplete client-side event will be triggered on scroll action with requestType event argument as scroll. In this event, we can get the current scroll top position of the tree grid content using the scroller object. please refer the following code example for this.

<ej-treegrid #TreeGridControl id="TreeGridContainer" 
enableVirtualization = "true" (actionComplete) = "actionComplete($event)" > 


actionComplete(args) {
         if (args.requestType == "scroll") {
            var treeObj = this.treeGrid.widget;
            var scrollTop = treeObj.getScrollElement().ejScroller("scrollTop");
            this.scrollValue = scrollTop;

The below screenshot shows the output of above code example.

Current scroll top value of treegrid content using scroller object.

Sample to get the current scroll top of the tree grid content is available here.




You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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