I have a DevExpress SpinEdit amount field:
@Html.DevExpress().SpinEditFor(model => model.Tare, settings =>
{
settings.Width = 153;
settings.Properties.DisplayFormatString = @"0.0,0";
}).GetHtml()
When I change the value manually the value is passed correctly to the controller.
But when I change the value via jquery it is displayed correctly but is not passed to the controller.
var gross = parseFloat($('#Brutto_Raw').val().replace(',', '.'));
var net = parseFloat($('#Amount_Raw').val().replace(',', '.'));
var tare = gross - net;
$('#Tare_I').val(parseFloat(tare).toPrecision(12));
$('#Tare_Raw').val(parseFloat(tare).toPrecision(12));