Slider Number Format

3 posts, 0 answers
  1. Matt
    Matt avatar
    13 posts
    Member since:
    Jan 2011

    Posted 23 May Link to this post

    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. Stefan
    Admin
    Stefan avatar
    264 posts

    Posted 25 May Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Matt
    Matt avatar
    13 posts
    Member since:
    Jan 2011

    Posted 25 May in reply to Stefan Link to this post

    Thanks Stefan, I didn't realize that this controlled the format on the tooltip and on the slider itself...
Back to Top