This is a migrated thread and some comments may be shown as answers.

DataGrid ScrollItemIntoView but located at bottom

1 Answer 52 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Bernhard
Top achievements
Rank 1
Bernhard asked on 01 Oct 2018, 01:07 PM

if i do radDataGrid.ScrollItemIntoView(object) the desired object is located at the bottom of the grid, so that the user can't select the possibly next object. user must scroll down.

what i need is something like uwp listview does: listview.ScrollIntoView(ViewModel.SelectedFall,ScrollIntoViewAlignment.Leading)

that means, datagrid.scrollitemintoview should display the desired object possibly at the top (not at bottom).

 

how to do this in uwp?

 

pls help, regards Bernhard

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 02 Oct 2018, 02:13 PM
Hi Bernhard,

I have created a sample example how to achieve the described scenario when the DataGrid is sorted. Please note that when some of the DataGrid operations (Filtering, Sorting, Grouping) is applied the index of the current item is changed.
 
I hope the provided information could help. Let me know if you have any other questions on this.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Bernhard
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or