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

slider problem

1 Answer 48 Views
Slider
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 19 Nov 2008, 04:30 PM
can anyone show me how to get a slider control to show numerical increments ?
Ive used the code from the examples here http://demos.telerik.com/ASPNET/Prometheus/Slider/Examples/Skinning/DefaultCS.aspx

but it doesnt work, I get the slider control but because there are no numrical increments with it the user will have no idea what values the slider is selecting.  Heres the code Ive used
<telerik:RadSlider ID="RadSlider1" runat="server" ItemType="tick" TrackPosition="TopRight"   
                        SlideStep="5" MaximumValue="20" MinimumValue="5" Skin="Vista" Width="100px" onvaluechanged="RadSlider1_ValueChanged" />  






 If I use this

<telerik:RadSlider runat="server" ID="RadSlider3" Orientation="Horizontal" Height="50" 
                        ItemType="Item" TrackPosition="BottomRight">  
                        <Items> 
                            <telerik:RadSliderItem Text="Item" Value="1" ToolTip="Very bad" runat="server"></telerik:RadSliderItem> 
                            <telerik:RadSliderItem Text="Item" Value="2" runat="server"></telerik:RadSliderItem> 
                            <telerik:RadSliderItem Text="Item" Value="3" runat="server"></telerik:RadSliderItem> 
                            <telerik:RadSliderItem Text="Item" Value="4" runat="server"></telerik:RadSliderItem> 
                            <telerik:RadSliderItem Text="Item" Value="5" runat="server"></telerik:RadSliderItem> 
                        </Items> 
                    </telerik:RadSlider> 
 
 I get an error
Type 'Telerik.Web.UI.RadSlider' does not have a public property named Item

This is strange since its lifted directlry from the example from the link above

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Nov 2008, 08:51 AM
Hello Mark,

I suggest to examine this online demo which shows and explains how to configure the RadSlider in the desired manner. Please, also make sure that you are using the latest build of RadControls, Q3 2008, namely 2008.3 1105, because some of the properties are new and do not exist in older versions.


All the best,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Slider
Asked by
mww
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or