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

SelectionStart with negative values

3 Answers 29 Views
This is a migrated thread and some comments may be shown as answers.
Peter Zolja
Top achievements
Rank 1
Peter Zolja asked on 18 Dec 2008, 12:19 AM
If I have this slider:

<telerik:RadSlider runat="server" ID="rs" Orientation="Horizontal" Width="170" Height="50" 
            MinimumValue="-57" MaximumValue="57" TrackPosition="Center" ItemType="Item" 
            SmallChange="1" LargeChange="0"  
            SelectionStart="-7" SelectionEnd="21" 
            IsSelectionRangeEnabled="true"   
            ShowDecreaseHandle="true" 
            ShowIncreaseHandle="true"           
            ClickOffset="0" 
             > 
             <Items> 
              <telerik:RadSliderItem Value="-57" /> 
              <telerik:RadSliderItem Value="-56" /> 
              <telerik:RadSliderItem Value="-28" /> 
              <telerik:RadSliderItem Value="-21" /> 
              <telerik:RadSliderItem Value="-14" /> 
              <telerik:RadSliderItem Value="-7" /> 
              <telerik:RadSliderItem Value="-6" /> 
              <telerik:RadSliderItem Value="-5" /> 
              <telerik:RadSliderItem Value="-4" /> 
              <telerik:RadSliderItem Value="-3" /> 
              <telerik:RadSliderItem Value="-2" /> 
              <telerik:RadSliderItem Value="-1" /> 
              <telerik:RadSliderItem Value="0" /> 
              <telerik:RadSliderItem Value="1" /> 
              <telerik:RadSliderItem Value="2" /> 
              <telerik:RadSliderItem Value="3" /> 
              <telerik:RadSliderItem Value="4" /> 
              <telerik:RadSliderItem Value="5" /> 
              <telerik:RadSliderItem Value="6" /> 
              <telerik:RadSliderItem Value="7" />               
              <telerik:RadSliderItem Value="14" />               
              <telerik:RadSliderItem Value="21" /> 
              <telerik:RadSliderItem Value="28" /> 
              <telerik:RadSliderItem Value="56" /> 
              <telerik:RadSliderItem Value="57" />               
             </Items> 
          </telerik:RadSlider>    

The SelectionStart doesn't work if the value is negative. Thanks.

3 Answers, 1 is accepted

Sort by
0
Peter Zolja
Top achievements
Rank 1
answered on 18 Dec 2008, 01:03 AM
The SelectionStart seems to give the position rather than value. RadSliderItem's value doesn't seem to be used.
0
Peter Zolja
Top achievements
Rank 1
answered on 18 Dec 2008, 01:13 AM
The value can be accessed with Slider.Items[Slider.SelectionStart].Value
0
Accepted
Tsvetie
Telerik team
answered on 18 Dec 2008, 11:40 AM
Hello Peter Zolja,
We already have the task to update the documentation of the RadSlider control with those methods. We will do our best to complete this task for SP2, scheduled for the middle of January.

Greetings,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Peter Zolja
Top achievements
Rank 1
Answers by
Peter Zolja
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or