<div class="form-group">
<label asp-for="Summ">Стоимость от</label>
@(Html.Kendo().NumericTextBox<decimal>()
.Name("Summ")
.Min(0)
.Value(Model.Summ)
.HtmlAttributes(new { style = "width: 100%" })
)
</div>
public class ServiceViewModel
{
......
public decimal Summ { set; get; }.....
}
var supportedCultures = new[] { new CultureInfo("ru-RU") };
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture("ru-RU"),
SupportedCultures = supportedCultures,
SupportedUICultures = supportedCultures
});
<script src="~/lib/kendo/js/cultures/kendo.culture.ru-RU.min.js"></script>
the database contains a value, but does not display it correctly.And also, when saving the form, it does not take a value in the model, therefore, in the controller, the value is 0.How to fix it all?