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

request: add Decimals property for ticks

3 Answers 122 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Lee Morgan
Top achievements
Rank 1
Lee Morgan asked on 06 May 2011, 07:15 PM
I switched away from using the ASP.NET AJAX Toolkit's SliderExtender to RADSlider and love it, except I miss having the Decimals property.  Some stakeholders in my projects are very picky about precision in the display of numbers, and not being able to force the display of decimal digits on the tick labels will raise some complaints for me.

I've tried using the DataTextFormatString property but nothing changed; I imagine because the sliders are not databound.

3 Answers, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 10 May 2011, 11:52 AM
Hello Mark,

You are correct in your observations. The RadSlider will display floating point values without the trailing zero signs. Still it supports floating point values with a precision up to two positions after the whole part. Please, check the following setup for more clarity:
<telerik:RadSlider ID="negativeSlider" runat="server" MinimumValue="-1" MaximumValue="1" SmallChange="0.05" LargeChange="0.5" Width="500" Value="0" ItemType="Tick" Height="70"  OnClientValueChanging="changingValue" />
<telerik:RadTextBox ID="negativeSliderValue" runat="server" Value="0" Label="Slider value: " />
<script type="text/javascript">
function changingValue(slider, args)
{
    $find("negativeSliderValue").set_value(args.get_newValue());
}
</script>

Hope this makes things a bit clearer. Please, let me know if you will need anything else.

Regards,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Lee Morgan
Top achievements
Rank 1
answered on 10 May 2011, 01:37 PM
Niko-

Yep, got everything working already so the slider precision was working correctly, just wanted to have the tick value labels mirror the precision of SmallChange, maybe that would be the change to make instead of adding another property.  Many thanks for any consideration in making something like this happen.

Mark
0
Niko
Telerik team
answered on 11 May 2011, 02:57 PM
Hi Mark,

Thank you for your suggestion.

Currently we are discussing several ways of making the RadSlider more flexible and your suggestion will be included in the discussion. Still when or whether it will be implemented is still a unknown variable, if you allow me to express it that way.

All the best,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Slider
Asked by
Lee Morgan
Top achievements
Rank 1
Answers by
Niko
Telerik team
Lee Morgan
Top achievements
Rank 1
Share this question
or