SelectionStart with negative values

4 posts, 1 answers
  1. Peter Zolja
    Peter Zolja avatar
    119 posts
    Member since:
    Dec 2007

    Posted 17 Dec 2008 Link to this post

    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.
  2. Peter Zolja
    Peter Zolja avatar
    119 posts
    Member since:
    Dec 2007

    Posted 17 Dec 2008 Link to this post

    The SelectionStart seems to give the position rather than value. RadSliderItem's value doesn't seem to be used.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter Zolja
    Peter Zolja avatar
    119 posts
    Member since:
    Dec 2007

    Posted 17 Dec 2008 Link to this post

    The value can be accessed with Slider.Items[Slider.SelectionStart].Value
  5. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 18 Dec 2008 Link to this post

    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.
Back to Top