Slider order changes on drag

2 posts, 0 answers
  1. Paul
    Paul avatar
    1 posts
    Member since:
    Jan 2009

    Posted 17 Nov 2012 Link to this post


    I have a slider defined as follows:

    <telerik:RadSlider ID="RadSlider1" runat="server" Value="0" MinimumValue="0" MaximumValue="50" AutoPostBack="true" Height="60px" Width="500px" ItemType="Item" ShowDecreaseHandle="false" ShowIncreaseHandle="false" TrackPosition="TopLeft" Skin="Simple">


    I populate a range of values in code behind as follows:

    myExcess As List(Of contractors.excess) = contractors.excess.GetByContractorID(Session("ContractorID"))


     For Each Excess In myExcess

     RadSlider1.Items.Add(New RadSliderItem(Excess.ExcessAmount, Excess.ExcessPercent))


    for this example, values witten are
    Text = 100, value =0.1
    Text = 200, value =0.2
    etc. etc

    The slider renders as expected, however, after clicking or dragging, the order of the items changes!
    It was initially: 100,200,300,400,500

    After a drag this may become 100,200,400,500,300

    There is no other clientside or server side code so I am puzzled!

    Same problem with IE and Chrome

    Can anyone help please?






  2. Slav
    Slav avatar
    1351 posts

    Posted 21 Nov 2012 Link to this post

    Hi Paul,

    The order of the items in the RadSlider depends on the order of the records in the data-source used for populating the control. I would suggest checking if the order in which the items come from the data-source is always the same and whether the slider is rebound every time a postback occurs.

    If you are still having difficulties, please send a simple, runnable page that isolates your case so that I can inspect it locally and provide a concrete solution.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top