I'm trying to implement a "find" feature where the user can enter a value in a textbox (outside of the grid) then click a button to find the row that matches the search criteria. I'm able to programmatically set the selectitem on the grid successfully, but if the item is not in the current scroll region the user has to scroll down to to the item. Is there a way to ensure that the selected item is always in view? Also, I should mention that we are using MVVM, so there is no code behind.
13 Answers, 1 is accepted
You can use our ScrollIntoView() method to achieve your goal. Since your using MVVM you can create your custom attached behavior to do this - you can check for the project in this blog post for more info about attached behaviors.Kind regards,
the Telerik team
In your ViewModel:
In your RadGridView:
There must be a better solution without the propertyname and the reflection, but this works in my scenario
Based on Erik's post, here is another attempt..
In the RadGridView,
You can check the documentation on Scroll to a particular row or column on the different options RadGridView suggests and how the scroll methods are expected to work.
Thank you for providing the additional approach and contributing to the Telerik community.
using telerik not working on shift + mousewheel
try this code without telerik
private void ScrollViewer_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
ScrollViewer scrollviewer = sender as ScrollViewer;
if (Keyboard.Modifiers == ModifierKeys.Shift)
if (e.Delta > 0)
e.Handled = true;
<ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" PreviewMouseWheel="ScrollViewer_PreviewMouseWheel" />
I replied to your question in the other forum thread: https://www.telerik.com/forums/ctrl-mousescroll-for-zoom-mousescroll-for-scrolling#_sxWZEbW80ySdQ1Swtiruw.