Slider Number Format

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

    Posted 23 May 2016 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
    582 posts

    Posted 25 May 2016 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. Matt
    Matt avatar
    16 posts
    Member since:
    Jan 2011

    Posted 25 May 2016 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