This example demonstrates RadScrollBar.
Here you can test and compare the events being fired by RadScrollBar and Microsoft's
ScrollBars.
To select a scrollbar, use the "Edit Properties for" combobox at the top right corner.
Then you can modify the properties of the selected control by changing
the property values below the combobox.
By ThumbLengthProportion we understand the thumb width for horizontal ScrollBar and the thumb height for vertical
ScrollBar.
There are two modes for setting thumb length: automatic and proportional.
- Automatic mode - use negative values for property "ThumbLengthProportion" to activate automatic thumb length calculation.
In automatic mode the thumb length is determined by "Minimum", "Maximum" and "LargeChange" properties just like in Microsoft
ScrollBar.
- Proportional mode - use values between 0 and 1 for property "ThumbLengthProportion" to activate proportional thumb length calculation.
The proportion is given as part of the whole possible area for the thumb
There is a property MinThumbLength which gives the minimum number of pixels for thumb length so value 0 for "ThumbLengthProportion" does not mean 0 pixels but "MinThumbLength" pixels.
This way if you wish to make the ScrollBar to be with thumb with constant length just set ThumbLengthProportion to 0 and MinThumbLength
to the number of pixels you wish.
This example demonstrates the fact that the difference between horizontal and vertical scroll bars is only a property value.
To test both horizontal and vertical scrolling - just select "Telerik Both" and modify the ScrollType
property.