Completed
Last Updated: 21 Jan 2022 07:55 by ADMIN
Jean-Francois
Created on: 12 Mar 2012 12:40
Category: Slider
Type: Feature Request
41
Support for changing min max value of slider
Please provide support of changing min and max value of slider since this is a good way to avoid selecting invalid data. We have business rule that currently must set these values, but unfortunatly the slider does not get redrawn.
12 comments
ADMIN
Neli
Posted on: 21 Jan 2022 07:55

Hi Sven,

I tested the described behavior and on my side when the max value of the Slider is changed using the setOptions method, the value can be set according to the new max value. Here is a Dojo example where this is demonstrated.

Please take a look at the provided example and let me know if I am missing something. 

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Sven
Posted on: 14 Jan 2022 10:09

Your method works @Carl - but how to "redraw" the slider .. 

currently despite setting max to a higher value the "marker" reaches the end of the slider at the old max value, can we somehow repaint / redraw the widget to get a proportional movement of the "marker" ?

ADMIN
Carl
Posted on: 26 Jan 2018 17:06
As a heads up, this can be achieved by using the setOptions method found in the Slider component:

https://docs.telerik.com/kendo-ui/api/javascript/ui/slider#methods-setOptions

This allows changing the min, max, smallStep, and LargeStep options at any time.
Imported User
Posted on: 07 Oct 2016 13:54
Will you also provide a way to change the largeStep and the smallStep of the slider?
ADMIN
Telerik Admin
Posted on: 28 Mar 2016 09:41
I will forward your feedback to our devteam, guys. Note that this enhancement implementation is postponed due to other high priority errands planned for Kendo UI.
Stéphane
Posted on: 24 Mar 2016 16:27
This has been posted 4 years ago, it has quite some votes, and this really looks like not much work to implement. Can't we at least have some feedback or any form of reply from you guys? Destroying the slider created by the MVC Helper in javascript and recreating it is not only bad (because it duplicates the slider's creation logic) it also breaks the slider itself if you don't spend a lot of time working on hacking the JS slider's creation to make it work.
Tomas
Posted on: 11 Feb 2016 16:57
Please, I need to dynamically change min and max of the Slider. I have a product list and I have a price filter with this slider. But the max value changes depends on listed category.
Imported User
Posted on: 03 Oct 2014 18:28
The NumericTextBox provides functions to support this behavior. I think that the Slider should also implement it.
sachin
Posted on: 17 Sep 2014 07:41
customize kendo slider MVC set max and min value dynamically
Richard
Posted on: 18 Apr 2013 16:16
This is definitely something that should go into the next release. I can create custom functions, but they all involve redrawing.
Kjell
Posted on: 24 May 2012 18:23
For example, updating smallStep. 
Ben
Posted on: 28 Mar 2012 11:20
Hi Jean, Kendo UI,

Did you get this resolved? I too cannot get the slider to be dynamically redrawn on updates to MAX value.
I can set the MAX value but its not reflected in triggering a redraw.

Cheers,
Ben