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

How can I set single line scroll with mouse wheel event?

2 Answers 435 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Bekir
Top achievements
Rank 1
Iron
Bekir asked on 01 Jul 2016, 04:21 AM

Hello,

I use RadListView in ListView mode. Each tic of mouse wheel, the RadListView scrolling three lines (rows).

I want to scroll only one line. How can I  do this?

Kind regards.

2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 04 Jul 2016, 02:48 PM
Hi ,

Thank you for writing.

The scrolling behavior using the mouse wheel is determined by the value of the static System.Windows.Forms.MouseWheelScrollLines property. In order to alter the default implementation, you would need to use a custom RadListView control.

I am sending you attached a sample project and a short video showing the result on my end.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
0
Bekir
Top achievements
Rank 1
Iron
answered on 05 Jul 2016, 12:27 AM

Hi Hristo,

Thank you for your response.

This sample solved my issue.

Regards...

Tags
ListView
Asked by
Bekir
Top achievements
Rank 1
Iron
Answers by
Hristo
Telerik team
Bekir
Top achievements
Rank 1
Iron
Share this question
or