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

Tick's not showing

1 Answer 64 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Clarence Klopfstein
Top achievements
Rank 1
Clarence Klopfstein asked on 23 Sep 2009, 08:04 PM
I have the following declaration, and my tick marks aren't showing.

Thoughts?
<telerik:RadSlider ID="rdSlider" runat="server" OnClientValueChange="HandleValueChange"  
                OnClientLoaded="HandleValueChange" Width="135"  
                CausesValidation="false" Visible="true" TrackPosition="Center" 
                OnValueChanged="rdSlider_ValueChanged" AutoPostBack="true" ItemType="Tick" LargeChange="100"
            </telerik:RadSlider> 

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 29 Sep 2009, 06:19 AM
Hi Clarence Klopfstein,
The RadSlider checks whether there is enough space for the ticks to show and in case there is not, the control does not create the HTML for them at all. For example, in case the width of a tickmark is 1px and the slider will create 100 tickmarks, it will only create them in case its track element is at least 100px wide.

In your case, the track element is exactly 85px wide and the slider needs to display 99 small tickmarks and 2 large tickmarks. As there is not enough space for the small tickmarks, the slider only creates the large tickmarks.

Sincerely yours,
Tsvetie
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
Slider
Asked by
Clarence Klopfstein
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or