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

Scroll to the selected index in DataGrid

No "ScrollIntoView" type options come up in IntelliSense.  This is probably pretty simple but since we have no documentation, a quick tip is appreciated.

Thanks

3 Replies

RA Riyaj Ahamed I Syncfusion Team March 5, 2013 12:05 PM UTC

Hi Gary,

 

Thanks for choosing Syncfusion product.

 

As of now we do not expose any public method for Scroll in view option. Hence we have created feature request for this requirement. However we have created the workaround sample to achieve your requirement. Please check the sample under the following link.

 

Sample: ScrollInView_WorkArround.zip

 

Please let us know if you need further assistance.

 

Regards,

Riyaj Ahamed I          



ScrollInView_WorkArround_fe7b5dc2.zip


AN anthony nichols March 18, 2016 10:01 PM UTC

Any word on this? Looks like it's been almost 3 years since the feature request was put in.


JS Jayapradha S Syncfusion Team March 21, 2016 02:30 PM UTC

Hi Gary,

Yes. We have provided the support for getting the ScrollInView() method directly. Please find the code example below,

Code Example:


this.datagrid.GetVisualContainer().ScrollRows.ScrollInView(this.datagrid.SelectionController.CurrentCellManager.CurrentRowColumnIndex.RowIndex);
To access the GetVisualContainer() method, you have to include the namespace using Syncfusion.UI.Xaml.Grid.Helpers.

Please let us know if you require any other assistance.

Regards,
Jayapradha


Loader.
Live Chat Icon For mobile
Up arrow icon