kendoNumericTextBox format error - #.000

1 Answer 10 Views
NumericTextBox
n/a
Top achievements
Rank 1
Iron
Iron
n/a asked on 25 Apr 2025, 01:42 AM

Hello~

code:  format: "#.000 kg"

input: 76.123

result: 76.12

why???

 

 

https://dojo.telerik.com/CgPMEaiE

 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 29 Apr 2025, 08:40 AM

Hi Won Bae Jung,

You need to set decimals. When it is not set, the precision defined by the current culture is used.

$("#numeric").kendoNumericTextBox({
            format: "#.000 kg",
            decimals: 3
        });

Dojo demo: https://dojo.telerik.com/TYRQwvSs

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
NumericTextBox
Asked by
n/a
Top achievements
Rank 1
Iron
Iron
Answers by
Nikolay
Telerik team
Share this question
or