Hi all,
After a lot of struggling, I have managed to get NumericTextboxFor working.
The problem I have is that .MinValue and .MaxValue have no effect at all.
On the opposite side, with NumericTextbox the .MinValue and .MaxValue actually works, but I cannot get the post of the control back to the controller to work.
Here is my code:
<div class="frame">
<div class="control">
<table class="editors">
<tr>
</th>
<th>
@Html.EJ().NumericTextBoxFor(model => model.ConfirmedWastedQuantity, new { Value = Model.WastedQuantity.ToString() ?? "0" }).MinValue(0).MaxValue(10)
@Html.HiddenFor(x => x.ConfirmedWastedQuantity)
</th>
<th>
</th>
</tr>
</table>
</div>
</div>
I am rather new to ASP.NET MVC, so I could be doing something wrong.
Please assist.
N. Jamieson