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

4 posts, 0 answers
  1. Kjell
    Kjell avatar
    275 posts
    Member since:
    Jun 2010

    Posted 23 May 2012 Link to this post

    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.


  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 24 May 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Kjell
    Kjell avatar
    275 posts
    Member since:
    Jun 2010

    Posted 24 May 2012 Link to this post

    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.
  5. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 28 May 2012 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready