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

Formatting: Basis Points

1 Answer 20 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Devin
Top achievements
Rank 1
Devin asked on 29 Sep 2015, 10:16 PM

Hi,

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.

 

Thanks,

Devin

1 Answer, 1 is accepted

Sort by
0
Plamen Lazarov
Telerik team
answered on 01 Oct 2015, 03:27 PM

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:

http://docs.telerik.com/kendo-ui/web/numerictextbox/overview#numerictextbox-overview 

http://docs.telerik.com/kendo-ui/api/javascript/ui/numerictextbox

http://demos.telerik.com/kendo-ui/numerictextbox/index

Regards,
Plamen Lazarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
NumericTextBox
Asked by
Devin
Top achievements
Rank 1
Answers by
Plamen Lazarov
Telerik team
Share this question
or