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

How can I change a property of the slider after it has been initialized?

3 Answers 244 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 23 May 2012, 09:19 PM
I need to update the smallStep property based on user actions.

I tried:

var slider = $("#sliderHours").data("kendoSlider");
slider.smallStep = "1";

but it had no impact.  The first line did access the slider, but 'slider.smallStep' is undefined.  I tried to re-initialize the slider but that also had no impact.


3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 24 May 2012, 08:12 AM
Hi Kjell,

Currently there is no such functionality available. I would suggest to submit your request in Kendo's UserVoice so other members of the community can evaluate, comment on and vote for it. 

Kind regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kjell
Top achievements
Rank 1
answered on 24 May 2012, 06:20 PM
Any suggestions for a workaround?  There are only 3 or 4 possible small step values I would use, so I guess worst case scenario I can have 4 sliders but dynamically hide/show them so only the one I need is visible.
0
Hristo Germanov
Telerik team
answered on 28 May 2012, 02:45 PM
Hello Kjell,

You can use jquery empty() to remove the slider and then you can initial the slider with the new step.

Greetings,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Slider
Asked by
Kjell
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Kjell
Top achievements
Rank 1
Share this question
or