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

RadSlider with variable step

1 Answer 14 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 26 Aug 2016, 08:40 PM

I need a control similar to Slider but something that I can DataBind to a list of custom objects.

I need to allow the user to increase/decrease time on a chart  3years 1year 6 months 1 month hours minutes.....

I do want the functionality of slider where user can click +/- and and i can get the next object in the list, Also i would like to display the time that the user selected

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 30 Aug 2016, 01:22 PM
Hi Vikas,

We are not exactly sure that we have completely understood the behavior and functionality. Basically, this functionality is not supported from the RadSlider control out of the box. However, you can use the TickTemplate property of the RadSlider control as described in the Tick Template help article. You can create a custom DataTemplate and use an IValueConverter to return the desired string. Then you can subscribe to the ValueChanged event and depend on the Value property you can get the string. We have created a sample project demonstrating the approach described above. 

If we are in the wrong direction you can elaborate more on the approach which you are trying to achieve in your application. We are looking forward to your answer.

Regards,
Dinko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Slider
Asked by
Vikas
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or