RadSlider with variable step

2 posts, 0 answers
  1. Vikas
    Vikas avatar
    37 posts
    Member since:
    Dec 2015

    Posted 26 Aug 2016 Link to this post

    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

  2. Dinko
    Dinko avatar
    1220 posts

    Posted 30 Aug 2016 Link to this post

    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.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top