Disable focus when selecting row

Hello,
when I'm using selectRows function to select a row programmatically in Grid, the view always scrolls into the selected row. How to disable this scroll ?


1 Reply

JC Joseph Christ Nithin Issack Syncfusion Team July 14, 2021 02:09 PM UTC

Hi Mahmoud, 
  
Greetings from Syncfusion support. 
 
By default, in EJ2 Grid when we select the row programmatically using selectRows method the view scroll to the selected row. 
 
When we select the row, in grid the row gets focus so by default when we focus input element or any HTML element the scroller will be moved to the focus element. 
  
Based on your requirement you need to disable the scroll, so please share the exact use case of disabling the scroll while selecting the row which will help us to provide the proper solution. 
  
Regards, 
Joseph I. 


Loader.
Up arrow icon