This question is locked. New answers and comments are not allowed.
I'm using the CurrencyTextBox inside a EditorTemplate:
Decimal.ascx:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<decimal?>" %>
<%= Html.Telerik().CurrencyTextBox()
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
.InputHtmlAttributes(new { style = "width:100%" })
.Value(Model)
.CurrencySymbol(" ")
%>
the real value is 1.0 but the display value is 10.00. The problem is, when I save, the real value become 10.0 and the display value 100.00 and so on..
I believe there is a problem with the culture, I'm using it-IT, and the decimal numbers become part of the real number.
how can I fix it?
Decimal.ascx:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<decimal?>" %>
<%= Html.Telerik().CurrencyTextBox()
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
.InputHtmlAttributes(new { style = "width:100%" })
.Value(Model)
.CurrencySymbol(" ")
%>
the real value is 1.0 but the display value is 10.00. The problem is, when I save, the real value become 10.0 and the display value 100.00 and so on..
I believe there is a problem with the culture, I'm using it-IT, and the decimal numbers become part of the real number.
how can I fix it?