Get visible rows in VirtualScroll

How can I get the rows as array that are currently seen in a Grid with VisualScroll?


1 Reply 1 reply marked as answer

SK Sujith Kumar Rajkumar Syncfusion Team October 14, 2021 09:28 AM UTC

Hi Sebastian, 
 
Greetings from Syncfusion support. 
 
You can retrieve the visible rows in the current view(with virtual scroll) from the Grid’s currentViewData property as demonstrated in the below code snippet, 
 
// Button click event function 
document.getElementById('generate').addEventListener('click', function () { 
    console.log(grid.currentViewData); 
}) 
 
We have prepared a sample based on this for your reference. You can find it below, 
 
 
 
Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 


Marked as answer
Loader.
Up arrow icon