I'm using Telerik for ASP.NET Core Wrappers, setting culture and format for column.
Display format is correct according to culture, the problem is that when I edit the field, format is always in English culture, with dot separator for decimal. When I save it, it considers the culture and ignore the dot because it is not the culture decimal separator.
Images:
DisplayMode.PNG - Ok
EditMode.PNG - Using dot as decimal separator - Not Ok
DisplayModeAfterChange - 20.6 is recognized as 206
Culture:
<script type="text/javascript"> kendo.culture("@System.Globalization.CultureInfo.CurrentCulture.ToString()");</script>
Column:
columns.Bound(p => p.PrecoDeVenda).Width(120).Format("{0: R'$' #,###,##0.##}")
DataSource:
.DataSource(dataSource => dataSource .WebApi() .Model(model => { ... }) .Batch(true) .Culture(System.Globalization.CultureInfo.CurrentCulture.ToString()) ... )
DataSource:
columns.Bound(p => p.PrecoDeVenda).Width(120).Format("{0: R'$' #,###,##0.##}")