We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

NumericTextboxFor: MinValue and MaxValue does not work

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

3 Replies

FP Francis Paul Antony Raj Syncfusion Team November 12, 2015 07:20 AM UTC

Hi Jamieson,

Thanks for contacting Syncfusion support.

This is the known issue and we have already fixed this issue. The fix for the issue will be available in our upcoming Volume 3 Service Pack 2 which is expected to be roll out by the end of November 2015.


Regards,

Francis Paul A



NE Neill November 12, 2015 10:45 AM UTC

Thank you for the reply.

I have worked around it for now and will update my code when the SP is released.

Kind regards,

Neil


FP Francis Paul Antony Raj Syncfusion Team November 13, 2015 10:41 AM UTC

Hi Neil,


Thanks for your update.

Please check once the Service Pack is rolled out.


Regards,

Francis Paul A


Loader.
Live Chat Icon For mobile
Up arrow icon