Scroll grid programatically

I would like to be able to scroll the grid up/down from another window, by code, I am usig the following method, but it does not work. The row does not move. I have set EnableVirtualization="true", as per documentatiuon.

var value = await MainGrid.GetSelectedRowIndexesAsync();

 int newValue = Convert.ToInt32(value[0] + 1);

 MainGrid.ScrollIntoViewAsync(-1, Convert.ToInt32(newValue));

  // If I use this other method it does scroll, but does not move to the next page

  MainGrid.SelectRowAsync(newValue); 



1 Reply 1 reply marked as answer

MS Monisha Saravanan Syncfusion Team January 18, 2022 10:40 AM UTC

Hi Ben, 

We are unable to reproduce the reported issue at our end and we have created an sample based on your requirement. Please find the below sample for your reference 


If you are still facing the reported problem then kindly share us the below details, 

  • Share the Grid code example in which you are facing the reported issue.
  • Share us the video demo showing the problem you are facing.
  • Share us the Syncfusion NuGet package version.
  • If possible share the issue reproducing sample or reproduce the issue in the above provided sample.


The above requested details will be helpful for us to validate your query and to provide you with a better solution as early as possible. 

Regards, 
Monisha  


Marked as answer
Loader.
Up arrow icon