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

Numeric format rounds to two decimal irrespective of the format

1 Answer 73 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Hariharan
Top achievements
Rank 1
Hariharan asked on 22 Jan 2015, 09:39 AM
Hi,
  I am using the latest version of the Kendo library.
I am using following code to convert a textbox to numeric box,

$("#initial").kendoNumericTextBox({
    format: "{0:n5}",
    decimal: 5,
    spinners: false
});

When i enter 1.23 then output format to 1.23000
But when i enter 1.23456 then output format to 1.23000 instead of 1.23456

Can you please let me know whether is it bug in numeric box or something wrong in the code?

1 Answer, 1 is accepted

Sort by
0
Hariharan
Top achievements
Rank 1
answered on 22 Jan 2015, 10:21 AM
Please ignore this post. As i found the issue is in my code. decimals is the option. But i used decimal.

-Hari
Tags
NumericTextBox
Asked by
Hariharan
Top achievements
Rank 1
Answers by
Hariharan
Top achievements
Rank 1
Share this question
or