Decimal Values

15 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 11 Oct 2007 Link to this post

    I submitted a suggestion along these lines and Telerik wanted to hear if anyone else thought it might be a good idea. Please give your two cents.

    It appears the current RadSlider "Value" property is of type Integer in the Beta. In the first release, this should be of type Double in order to allow for decimal values. Any other Value-related properties should also have this change... like MaximumValue, Minimum alue and SlideStep.

    Of course, integer values can  be scaled to decimals, but I don't see why this complication should be put upon the developer when there doesn't seem to be any reason to exclude the ability from using decimal values in the slider itself.
  2. Bill Alexander
    Bill Alexander avatar
    4 posts
    Member since:
    May 2007

    Posted 16 Nov 2007 Link to this post

    I absolutely agree
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Nov 2007 Link to this post


    Thank you for your vote Bill - it has been taken into consideration.




    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 25 Feb 2008 Link to this post

    Same here, I was surprised it was an int but I guess you can work around it.  I have a kilometer per hour slider (range 2 to 25) and wanted an increment (step) of 0.5 -for now I will try to work around it with a larger range and divide by 2..

    cheers
    ewart.
  6. Dave Durose
    Dave Durose avatar
    44 posts
    Member since:
    Jan 2008

    Posted 09 May 2008 Link to this post

    I agree as well.  Decimals should be allowed.  You should add a property to the RadSlider that allows you to specify whether you want to use integers (whole numbers) or decimals/doubles.  I have a real need for it.  I am wanting to use the RadSlider in my application to allow our staff to specify how much time they spent on customer requests and they can definitely spend tenths of hours working on customer requests.  Please consider in a future release.
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 May 2008 Link to this post

    Hello guys,

    Thank you for the feedback - I added it to the feature request. I would also like to provide you with some information on what is going on with the slider control:

    Currently we are reworking the rendering mechanism and the logic of RadSlider so we can provide the following features which are set with highest priority in our ToDo list:
    1. Two-thumb functionality.
    2. The ability to set the width and height of the control in percents
    3. More flexible mechanism for determining the physical and logical length of the track (currently Length property sets the physical value and the logical length is being calculated based on MinValue and MaxValue properties)
    4. Tickmarks for the values the slider takes.
    These are the main features and they are scheduled to appear for the Q2 release. We will do our best to provide the "decimal values" feature as well, however at this point I cannot promise you for sure that we will manage to do that. The feature itself is not so easy to achieve and we will start working on it right after we finish the task which are logged with higher priorities.

    I hope this information helps.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 12 May 2008 Link to this post

    Thanks Georgi, I would agree decimals is lower priority to most other things as there is an easy workaround by scaling integers. 

    I know this post has been located by several people searching for answers but in hindsight I'd rarther telerik put perhaps a smaller amount of time into improving the demos (or docs) to make the issue clearer, and ditch the decimals request.  

    As a new user, having a decimals demo would have lead me to the answer quickly.  Mind you, once the search issues in the forums is resolved then the forums will be a pretty gooddrepository for answers too.

    cheers
    ewart.
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 May 2008 Link to this post

    Hi Ewart,

    Yes you are right - we will consider adding a KB article that shows a possible workaround.

    By the way, if you have used such workaround and found it useful in your scenarios, you can share it with the rest of Telerik's community in the Code Library section on our site - I am sure the other members of the community will appreciate it.



    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  10. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 12 Jun 2008 Link to this post

    Agree with all the above.
    Need decimals. However two thumb functionality is right up there :)

    Any work arounds yet?

    I need percentage rates for banking apps and what I'm thinking is to use min:0 max:10000 then using javascript add a decimal point.

    I will give it a go.

    Alex
  11. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Jun 2008 Link to this post

    Hi Axe,

    Here is one possible workaround - I hope it helps:

    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
     
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
    function OnClientValueChange(sender, args) 
        var txtValue = $get('<%= txtCurrentValue.ClientID %>'); 
        txtValue.value = (sender.get_value() / 100) + '%'; 
    </script> 
    </telerik:RadCodeBlock> 
     
    <asp:Label ID="lblCurrentValue" runat="server" Text="Current value: "></asp:Label> 
    <asp:TextBox ID="txtCurrentValue" runat="server" Text="0%" ReadOnly="true"></asp:TextBox> 
    <telerik:RadSlider ID="RadSlider1" runat="server"  
        MinimumValue="0"  
        MaximumValue="10000"  
        Length="1024" 
        Value="0" 
        OnClientValueChange="OnClientValueChange" /> 
     


    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  12. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 16 Jun 2008 Link to this post

    That will go the trick.

    I havn't tried it out but is pretty much what I was thinking.

    Thanks
  13. Elliott
    Elliott avatar
    2 posts
    Member since:
    Jun 2009

    Posted 20 Jul 2009 Link to this post

    Is there a workaround that will display tick values? I need a slider for hours, with half hour increments. 480 minutes for 8 hours would be difficult for some people to understand.
  14. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 22 Jul 2009 Link to this post

    Hi Elliott,
    The RadSlider cannot create ticks with decimal text, but you can use your own image as background for the control, instead the ticks that the slider creates. I have attached a simple page in order to demonstrate my idea.

    Greetings,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  15. David
    David avatar
    4 posts
    Member since:
    Oct 2008

    Posted 25 Aug 2009 Link to this post

    Hi there,
    is there any update as to if/when the slider control will be able to handle decimal values?

    Thanks
    David
  16. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 27 Aug 2009 Link to this post

    Hello David,
    This feature is not on our TODO list for the next Q - Q3 2009. However, we will do our best to include it for the Q1 2010 version of the control.

    Greetings,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017