RadTabControl - Logical scrolling repeat buttons

3 posts, 0 answers
  1. Frankie
    Frankie avatar
    6 posts
    Member since:
    Nov 2011

    Posted 22 Nov 2011 Link to this post


    I would like to apply logical scrolling to the ScrollViewer RepeatButtons, so I can scroll by one RadTabItem at a time, instead of by a set physical measurement. Out of the box, RadTabControl appears to support logical scrolling for RadTabItems when using the mouse scroll wheel. It even includes animation when scrolling from one RadTabItem to the next. I would like to replicate this same behavior when a user clicks on the ScrollViewer RepeatButtons. Any ideas how to do this?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 23 Nov 2011 Link to this post

    Hi Frankie,

    The RadTabControl has a ScrollMode property which gets or sets the type of scrolling that will occur when the user presses the scroll buttons. It is an enumeration of type TabControlScrollMode and exposes the following values:
    • Pixel - Scroll 16 pixels per button click
    • Item - Scroll one item per button click
    • Viewport - Scroll an amount equal to the available viewport width
    In your scenario you can set the property to Item as this should apply the required scroll behavior.

    Give it a try and let me know if it works for you.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Frankie
    Frankie avatar
    6 posts
    Member since:
    Nov 2011

    Posted 23 Nov 2011 Link to this post


    Yes, this works. This was the exact behavior I was looking for. Thank you very much for your help.

Back to Top