Hello,
I am attempting to retain the position of the scroll position of the RadGridView depending on the action being performed by the user during a ReBind() event. I found a solution presented already before but I am having problems implementing it: http://www.telerik.com/forums/scrollviewer-in-radgridview. It only seems to work intermittently. Even though the contents and row count are not changing, sometimes the scroll stays perfectly still as expected, sometimes nudges slightly, sometimes jumps 5-10 rows losing focus on whatever the user was doing and confusing them. Oddly it always seems to work on subsequent Rebind() events unless the user adjusts the scroll position again and the problem begins to repeat. Is there anything that can be done to prevent or fix this unpredictable ​behavior?
var scrollViewer = this.radGridView.ChildrenOfType<
GridViewScrollViewer
>().FirstOrDefault();
//Get horizontal and vertical offsets
var horizontalOffset = scrollViewer.HorizontalOffset;
var verticalOffset = scrollViewer.VerticalOffset;
//Set horizontal and vertical offsets
scrollViewer.ScrollToHorizontalOffset(horizontalOffset);
scrollViewer.ScrollToVerticalOffset(verticalOffset);