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

Slider Number Format

2 Answers 197 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 23 May 2016, 03:06 PM

HI,

I have a slider:

 @(Html.Kendo().Slider<int>()
                                    .Name("yearSlider")
                                    .IncreaseButtonTitle("-")
                                    .DecreaseButtonTitle("+")
                                    .Min(2016)
                                    .Max(2019)
                                    .SmallStep(1)
                                    .LargeStep(1)
                                    .Value(2016)
                                    .HtmlAttributes(new { @class = "yearSlider" }))

The year is displayed as "2,016". How do I make it show "2016" (no comma)?

 

thanks

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 May 2016, 10:45 AM
Hello Matt,

Please check the Tooltip method of the the Kendo UI SlideBuilder, and use its Format option to display the value in the desired way:

The kendo UI SlideBuilder Toolpit method

Let me know if you need additional assistance.

Regards,
Stefan
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Matt
Top achievements
Rank 1
answered on 25 May 2016, 06:20 PM
Thanks Stefan, I didn't realize that this controlled the format on the tooltip and on the slider itself...
Tags
Slider
Asked by
Matt
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Matt
Top achievements
Rank 1
Share this question
or