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

RadTabControl - Logical scrolling repeat buttons

2 Answers 141 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Frankie
Top achievements
Rank 1
Frankie asked on 22 Nov 2011, 06:49 PM
Hello,

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?

Thanks,
Frankie

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 23 Nov 2011, 11:10 AM
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 >>

0
Frankie
Top achievements
Rank 1
answered on 23 Nov 2011, 05:22 PM
Tina,

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

-Frankie
Tags
TabControl
Asked by
Frankie
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Frankie
Top achievements
Rank 1
Share this question
or