request: add Decimals property for ticks

4 posts, 0 answers
  1. Lee Morgan
    Lee Morgan avatar
    3 posts
    Member since:
    Jan 2010

    Posted 06 May 2011 Link to this post

    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.
  2. Niko
    Admin
    Niko avatar
    387 posts

    Posted 10 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lee Morgan
    Lee Morgan avatar
    3 posts
    Member since:
    Jan 2010

    Posted 10 May 2011 Link to this post

    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
  5. Niko
    Admin
    Niko avatar
    387 posts

    Posted 11 May 2011 Link to this post

    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.

Back to Top