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

Reverse Slider Direction But Not Numbers

2 Answers 62 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 2
Jason asked on 17 Oct 2013, 03:07 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 18 Oct 2013, 12:40 PM
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.
0
Jason
Top achievements
Rank 2
answered on 18 Oct 2013, 01:09 PM
Thank you Slav that did the trick, somehow I overlooked that setting.
Tags
Slider
Asked by
Jason
Top achievements
Rank 2
Answers by
Slav
Telerik team
Jason
Top achievements
Rank 2
Share this question
or