alogrithm for ticks being generated (or not)?

4 posts, 0 answers
  1. Anthony
    Anthony avatar
    4 posts
    Member since:
    May 2007

    Posted 04 Apr 2012 Link to this post

    I have this:

            $("#priceRange").kendoRangeSlider({
                min: 0,
                max: 1000000,
                largeStep: 500000
            });

    Ticks are not generated, they are if using default values, everything else constant.  The above example should generate the same number of ticks, just that their underlying value is different.

    Thanks.
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 06 Apr 2012 Link to this post

    Hi Anthony,

    Thank you for contacting us.

    In your case from 0 to 1000000 you will have 1000000 ticks because the small step is 1 by default(the slider has restriction for the distance between ticks to be minimum 1 px). If you want to have ticks you need to set bigger small step.

    We will consider to change the small and the large steps to be percentage of the slider range by default.

    Greetings,
    Hristo Germanov
    the Telerik team
    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. Anthony
    Anthony avatar
    4 posts
    Member since:
    May 2007

    Posted 06 Apr 2012 Link to this post

    ok, you were right (of course); I thought I'd tried that.  Here's the thing, the business user want to be able to increment by 5000 (smallstep), but ticks are based on the smallstep.  Anyway, that I can make the smallstep 5000, but have the ticks generated from 100,000 each step.  In other words, any way i can make the smallstep different from the ticks?

    Thanks,

    Tony
  5. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 09 Apr 2012 Link to this post

    Hello Anthony,

    You can't do that by design. Please excuse us for the inconvenience.

    All the best,
    Hristo Germanov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready