Formatting: Basis Points

2 posts, 0 answers
  1. Devin
    Devin avatar
    2 posts
    Member since:
    Aug 2015

    Posted 29 Sep 2015 Link to this post


    1) Is there a way to format the number into basis points (or multiply by an arbitrary integer)? i.e. if the actual value is 0.01, I need to display 100

     2) When incrementing/decrementing, can we keep the formatting the same as when we focus out of the box? It always reverts to the actual value instead of the formatted value when incrementing/decrementing.




  2. Plamen Lazarov
    Plamen Lazarov avatar
    135 posts

    Posted 01 Oct 2015 Link to this post

    Hi Devin,

    Let me get straight to your questions: 

    1) Multiplying the value by an arbitrary integer is not supported, however, you can try setting the "p0" (%) format which internally multiplies the value by 100.

    2) The NumericTextBox operates in two different modes - display and edit. When it is in edit mode, the widget will always display the actual unformatted value. It is possible to configure the formatted value to look like a non-formatted, but the opposite is unfortunately not possible, because this would interfere with the value, which the widget submits to the server.

    More information about the NumericTextBox widget can be found below:

    Plamen Lazarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top