Slider values not set properly

3 posts, 0 answers
  1. Martin
    Martin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 17 Dec 2018 Link to this post

    Hello,

    I am trying the Kendo Slider for ASP MVC and want to set the inital values programatically. To do this I have this line of code:

     @Html.Kendo.RangeSlider.Name("rangesliderStadtverkehr").Min(0.6).Max(5.5).SmallStep(0.1).LargeStep(1).Values(CDbl(0.6), CDbl(5.5))

     

    But when the site is rendered the selectionStart-value is set to 6 and the selectionEnd-value is set to 55. It seems that the decimal-point ist forgotten.

    An additional problem is a linebreak at the end of the renderd slider. For both problems I have added an attachment.

    Can you help me to fix the problems? Thank you.

    Best regards, Martin

  2. Martin
    Martin avatar
    4 posts
    Member since:
    Oct 2012

    Posted 17 Dec 2018 in reply to Martin Link to this post

    Sorry, wrong image for the slider.
  3. Tsvetomir
    Admin
    Tsvetomir avatar
    696 posts

    Posted 19 Dec 2018 Link to this post

    Hi Martin,

    Thank you for providing the Kendo UI RangeSlider declaration along with screenshots. 

    I have tested it out and the slider appears to be working as expected. Please find the corresponding screenshots below:
    Can you ensure that you do not have external styles which might interfere with the slider's ones? Ideally, if you can provide a runnable project in which the current behavior can be reproduced, would enable me to debug the issue locally and provide an accurate answer where does the problem stem from.


    Kind regards,
    Tsvetomir
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.


Back to Top