I am not sure that I understand very well the first part of your question. If you need to handle the scroll events of the grid please consider subscribing the ValueChanged events on the horizontal and vertical scrollbars as already discussed. If I have correctly understood the second part of your question, you need to horizontally scroll the grid holding the Shift key and using the mouse wheel. In order to accomplish this, you can handle the MouseWheel event and then adjust the horizontal scrollbar value:
sender, MouseEventArgs e)
(Control.ModifierKeys == Keys.Shift)
HandledMouseEventArgs args = (HandledMouseEventArgs)e;
step = Math.Max(1, e.Delta / SystemInformation.MouseWheelScrollDelta);
delta = Math.Sign(e.Delta) * step * SystemInformation.MouseWheelScrollLines;
RadScrollBarElement scrollbar =
result = scrollbar.Value - delta * scrollbar.SmallChange;
(result > scrollbar.Maximum - scrollbar.LargeChange + 1)
result = scrollbar.Maximum - scrollbar.LargeChange + 1;
(result < scrollbar.Minimum)
result = scrollbar.Minimum;
scrollbar.Value = result;
I am also attaching a short video showing the result on my end. I hope this will help.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.