I want to have a numeric textbox which can display these numbers like that :
Case 1 : 1,25 display 1,25
Case 2 : 1,50 display 1.5
Case 3 : 2,00 display 2
I just want to remove trailing zeros while playing with formats but I never find the right format to have all these case together.
This is the code : @(Html.Kendo().NumericTextBox().Spinners(false).Name("DosePrescriteNumericTextBox"))
And the initialisation :
let jqDoseNumericTextbox = $("#DosePrescriteNumericTextBox");
jqDoseNumericTextbox.ready(function () {
jqDoseNumericTextbox.data("kendoNumericTextBox").value(model.Dose);
});
Thanks for your responses