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

Decimal digit problem?

1 Answer 373 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Ola
Top achievements
Rank 1
Ola asked on 24 Oct 2012, 09:04 PM
I want to display a decimal number with 2 decimals. The value is 1.3 but the numeric textbox is showing 130.00. By setting a swedish culture I would expect it to show 1,30 but even if I set en-US as culture or no culture at all it shows 130.00. If I change it to a regular Html.TextBoxFor I get 1,3.

@Html.Kendo().NumericTextBoxFor(model => model.Zone.CostFactor).Format("n2").Culture("sv-SE").Decimals(2)

/Ola.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 Oct 2012, 12:04 PM
Hello Ola,

 
I suppose that the required culture scripts are not registed on the page. Check this help topic for more information.

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!
Tags
NumericTextBox
Asked by
Ola
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or