Is there an easy way to disable the spinners?

17 posts, 0 answers
  1. Ian
    Ian avatar
    7 posts
    Member since:
    Nov 2010

    Posted 21 Dec 2011 Link to this post

    The spinners may not always be desired on all of the numeric textboxes. Is there an easy way to disable them? If not, could you guys consider adding that feature? Thanks!
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 22 Dec 2011 Link to this post

    Hello,

     
    Currently there is no build-in way to disable the spinners. Nevertheless you can easily achieve this with JavaScript - check this jsFiddle demo. I have logged your request to our internal system. If more users wants such functionality we will schedule it for further investigation.

    Kind regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Olle
    Olle avatar
    3 posts
    Member since:
    Nov 2011

    Posted 05 Jan 2012 Link to this post

    +1 for an easy way to disable the spinners.
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 06 Jan 2012 Link to this post

    Hello,

     
    You can share your feedback in the user voice page. Thus the users will be able to vote for this functionality.

    All the best,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Ian
    Ian avatar
    7 posts
    Member since:
    Nov 2010

    Posted 06 Jan 2012 Link to this post

    Created an issue here. Thanks for the help Georgi!

    Upvote this issue here!
  7. Nathan
    Nathan avatar
    6 posts
    Member since:
    Jan 2012

    Posted 29 Feb 2012 Link to this post

    The posted example does not actually disable the spinners. It just removes the images from the numeric text box. When the text box has focus, the Up/Down arrow still causes the spinning (i.e. increment and decrement) to happen. 
  8. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 21 Mar 2012 Link to this post

    Is this functionality implemented in Q1 2012?
    Regards.
  9. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 22 Mar 2012 Link to this post

    Hello,

     
    This functionality is still under consideration. There are features and fixes with higher priority and we need to take case of them first.

    All the best,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  10. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 22 Mar 2012 Link to this post

    Hi Georgi,
    The problem with this is that users use to press down/up arrow to navigate from cell to cell. When a numericTextBox is the editor of a cell in a grid, this causes to increment/decrement its value, instead of going to the cell above/below.
  11. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 27 Mar 2012 Link to this post

    Hello Oscar,

     
    In this case you will need to unbind the "keydown" event of the input element. Check the updated jsFiddle demo.

    All the best,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  12. Oscar
    Oscar avatar
    173 posts
    Member since:
    Oct 2010

    Posted 27 Mar 2012 Link to this post

    Hello Georgi,
    Thank you for the jsFiddle demo.
    If I unbind the keydown event, our decimal separator (comma) is shown as a dot when the user enters a decimal number using the numeric keyboard. (our kendo.culture is not 'en-US'). Is there any other workaround for this?
    Regards,
    Oscar.
  13. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 28 Mar 2012 Link to this post

    Hello Oscar,

     
    You will need to unbind the keydown event handler only if you need the input to be readonly. Could you please elaborate more on how you need to use the NumericTextBox? When it should be readonly and when it should not?

    All the best,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  14. Euro
    Euro avatar
    1 posts
    Member since:
    Jun 2012

    Posted 01 Aug 2012 Link to this post

    A better workaround to disable the spinners (until the feature is implemented), is to set the step property to 0:

    $("#initial").kendoNumericTextBox({
        step:0
    });

    It's not perfect because Up and Down still cause the caret to move, but at least it won't modify the value in the box.
  15. Joshua
    Joshua avatar
    1 posts
    Member since:
    Aug 2013

    Posted 19 Aug 2013 Link to this post

    I noticed the numerictextbox has a spinners option now but I cannot seem to use the data-attributes such as data-spinners="false".

    I think this is a bug and never added in since all the other options seem to work this way.


    Any help here? Thanks!
  16. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 20 Aug 2013 Link to this post

    Hello Joshua,

    I believe that the spinners option works just fine. Check this jsBin demo

    Regards,
    Georgi Krustev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  17. Koen
    Koen avatar
    7 posts
    Member since:
    Mar 2016

    Posted 08 Mar Link to this post

    Is this option already available now to easily disable them?
  18. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1797 posts

    Posted 09 Mar Link to this post

    Hi Koen,

    As mentioned in one of the previous posts, there is a spinners property that will determine whether or not to render the spinners:
    As you will notice, setting "spinners" to "false" will prevent the rendering of the spinners.


    Best Regards,
    Konstantin Dikov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready