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

Range Slider issue with Minimum and Maximum Values

1 Answer 434 Views
Slider
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 2
JP asked on 24 Apr 2015, 05:09 AM

Hi,

 I'm trying to use very small decimal numbers for the Minimum and Maximum Values for the Range Slider however it doesn't show the labels for the ticks.

Am I doing something wrong or is it a limitation for the Minimum and Maximum values?

Example:

Minimum = -1.5080401719063519

Maximum = 1.2150488669618964

Tick = ((Maximum - Minimum) / 5) = 0.54461780777364965

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 24 Apr 2015, 06:51 AM
Hello Johannes,

In order to display the Ticks of the RadSlider you need to set the TickPlacement property of the RadSlider as its default value is None and no Ticks are displayed, for more information you can check this article. After that you need set the TickFrequency property which is responsible for how often the ticks are drawn, for more information and code snippets you can check this article.
Please note that the RadSlider and its Minimum/Maximum/Value/SelectionRange properties work with Double not Decimal values.
<telerik:RadSlider Minimum="-1.5080401719063519" Maximum="1.2150488669618964" TickPlacement="Both"  TickFrequency="0.2"/>
I hope this information helps. Please let us know if you need further assistance.

Kind regards,
Kiril Vandov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Slider
Asked by
JP
Top achievements
Rank 2
Answers by
Kiril Vandov
Telerik team
Share this question
or