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

Adjusting scroll speed?

7 Answers 292 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joel Sanderi
Top achievements
Rank 1
Joel Sanderi asked on 01 Dec 2008, 03:11 PM
Hello.

Default behaviour for a radgridview is to scroll one whole "page" when using the mousewheel to scroll, however I would like to change this to something like 5 rows at a time. Is this possible?

Best Regards, Joel

7 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 04 Dec 2008, 02:21 PM
Hi Joel Sanderi,

Currently, RadGridView has a predefined scrolling step of one 'page' and this step cannot be customized. We will implement the customization feature in one of our next versions.

If you have additional questions, feel free to contact me.

Kind regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
shortie
Top achievements
Rank 2
answered on 17 Jan 2009, 03:48 AM
By the way, Can I change the horizontal scrolling speed?
Thanks in advance.

0
Nikolay
Telerik team
answered on 21 Jan 2009, 05:32 PM
Hi ChunChang,

Currently, the horizontal scrolling speed cannot be changed. If we decide to implement such feature in the future, could you please share more details about your preferences? By what kind of property would like to set the speed? Maybe property setting the number of columns to scroll?

I am looking forward to your response.

Regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
runningnet
Top achievements
Rank 1
answered on 22 Jan 2009, 11:48 PM
I was able to do this w/ the following code:

 

 

void MDEnterpriseWorklist_MouseWheel(object sender, MouseEventArgs e)

 

{

 

if (grdEnterprise.RowCount > 0)

 

{

isBlocking =

true;

 

}

 

//throw new Exception("The method or operation is not implemented.");

 

grdEnterprise.Focus();

 

if (e.Delta < 0)

 

grdEnterprise.GridElement.VScrollBar.PerformSmallIncrement(1);

 

else

 

grdEnterprise.GridElement.VScrollBar.PerformSmallDecrement(1);

 

 

// grdEnterprise.SelectedRows.Clear();

 

 

}

0
Nikolay
Telerik team
answered on 29 Jan 2009, 06:07 PM
Hi runningnet,

Thank you for sharing your approach with the community. We appreciate it. However, could you please elaborate a bit more on the approach? What is the type of MDEnterpriseWorklist control? RadGridView does not have a MouseWheel event and therefore I am interested in the type of the MDEnterpriseWorklist.

I am looking forward to your response.

Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
runningnet
Top achievements
Rank 1
answered on 12 Jan 2010, 08:17 PM
You can wire up the following event.

 

this.MouseWheel += new MouseEventHandler(MDWorklistGrid_MouseWheel);

 


0
Nikolay
Telerik team
answered on 13 Jan 2010, 03:09 PM
Hello runningnet,

Thank you for sharing your solution with the community.

I have updated your Telerik points for it.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Joel Sanderi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
shortie
Top achievements
Rank 2
runningnet
Top achievements
Rank 1
Share this question
or