Reverse Slider Direction But Not Numbers

3 posts, 1 answers
  1. Jason
    Jason avatar
    18 posts
    Member since:
    Aug 2013

    Posted 17 Oct 2013 Link to this post

    How do i reverse the slider direction without reversing the numbers?

    I tried this which almost works, but when applying a value of 5 the slider still thinks 5 is at the very end
    slider.IsDirectionReversed = true;
    slider.ItemType = SliderItemType.Item;
    slider.Items.Add(new RadSliderItem("5","5"));
    slider.Items.Add(new RadSliderItem("4", "4"));
    slider.Items.Add(new RadSliderItem("3", "3"));
    slider.Items.Add(new RadSliderItem("2", "2"));
    slider.Items.Add(new RadSliderItem("1", "1"));
  2. Answer
    Slav
    Admin
    Slav avatar
    1355 posts

    Posted 18 Oct 2013 Link to this post

    Hello Jason,

    This can be achieved by setting the property SelectedRegionStartValue with the maximum value of the slider. You can test it in the online demo Slider - Server-side API by disabling the option IsSelectionRangeEnabled to remove the selection range and setting the input SelectedRegionStartValue (which corresponds to the property with the same name) to 110.

    I hope this helps. Feel free to contact us again if you run into more difficulties.

    Regards,
    Slav
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason
    Jason avatar
    18 posts
    Member since:
    Aug 2013

    Posted 18 Oct 2013 Link to this post

    Thank you Slav that did the trick, somehow I overlooked that setting.
Back to Top