I have the following numeric textbox component:
<input id="priceTextBoxEdit" name="Price" />
<script type="text/javascript">
function runPriceTextBoxEdit() {
let numericTextBox = new ej.inputs.NumericTextBox({
currency: "EUR",
decimals: 4,
format: "c4",
min: 1.0,
placeholder: "Price",
step: 1.0,
value: @Model.Price.ToString().Replace(",", ".")
});
numericTextBox.appendTo('#priceTextBoxEdit');
}
</script>
When I insert a decimal such as 2.50 it's displayed it correctly but when I submit the form, my Model.Price (public decimal? Price { get; set; }) is 250 and not 2.52.
The dot is removed.. Why? Where could be the problem?
Thanks