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

Slider values not set properly

2 Answers 96 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 17 Dec 2018, 12:39 PM

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 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 17 Dec 2018, 01:07 PM
Sorry, wrong image for the slider.
0
Tsvetomir
Telerik team
answered on 19 Dec 2018, 12:28 PM
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.


Tags
Slider
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or