save the scroll position in grid

in ejs-grid , i want to be able to save the scroll location of the grid and then later return to that position, how is this possible?

something like bookmarking an special row in the grid.

1 Reply

PG Praveenkumar Gajendiran Syncfusion Team May 4, 2021 12:01 PM UTC

Hi Moorat,

Greetings from Syncfusion support.

We are not able to clearly understand your query from the provided information. So could you please explain/elaborate on this with the following information based on which we will validate from our end and provide the further details. 
  1. Video demonstration of your requirement to understand it better.
  2. In which case do you want to save the scroller position?
  3. Explain your exact requirement with more details.

Note: You can get and set the grid’s content scroller position in the following way. 
var verticalScrollingPosition=gridInstances.element.querySelectorAll(".e-content")[0].scrollTop; // Vertical Scrolling Position

var horizontalScrollingPosition= gridInstances.element.querySelectorAll(".e-content")[0].scrollLeft; // Horizontal Scrolling Position 


Regards,
Praveenkumar G
 


Loader.
Up arrow icon