Adjusting scroll speed?

8 posts, 0 answers
  1. Joel Sanderi
    Joel Sanderi avatar
    10 posts
    Member since:
    May 2008

    Posted 01 Dec 2008 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 04 Dec 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. shortie
    shortie avatar
    23 posts
    Member since:
    Jul 2008

    Posted 16 Jan 2009 Link to this post

    By the way, Can I change the horizontal scrolling speed?
    Thanks in advance.

  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 Jan 2009 Link to this post

    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.
  6. runningnet
    runningnet avatar
    20 posts
    Member since:
    Oct 2006

    Posted 22 Jan 2009 Link to this post

    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();

     

     

    }

  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 29 Jan 2009 Link to this post

    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.
  8. runningnet
    runningnet avatar
    20 posts
    Member since:
    Oct 2006

    Posted 12 Jan 2010 Link to this post

    You can wire up the following event.

     

    this.MouseWheel += new MouseEventHandler(MDWorklistGrid_MouseWheel);

     


  9. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 13 Jan 2010 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready