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

alogrithm for ticks being generated (or not)?

3 Answers 43 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 04 Apr 2012, 10:36 PM
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.

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 06 Apr 2012, 08:55 AM
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!
0
Anthony
Top achievements
Rank 1
answered on 06 Apr 2012, 05:58 PM
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
0
Hristo Germanov
Telerik team
answered on 09 Apr 2012, 09:44 AM
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!
Tags
Slider
Asked by
Anthony
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or