jQWidgets Forums

jQuery UI Widgets Forums ASP .NET MVC jqx-number-input bind to model

This topic contains 1 reply, has 2 voices, and was last updated by  admin 7 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqx-number-input bind to model #95770

    Admir Hodžić
    Participant

    Is there any way to mvc tag helper jqx-number-input or js conntolr number-input bind to model.

    I am trying to post form to MVC controller with model which contains decimal property

    In my index I use mvc tag helper

    <jqx-number-input decimal-separator="," decimal-digits="2" decimal="0" id="dugujeRoba" name="dugujeRoba" input-mode="simple" spin-buttons="false" width="100px"></jqx-number-input>

    Whatever I try I can’t push my form to post value back to controller.

    I did try changing decimal to double I did try using “.” as decimal separator but no success.
    Firefox and Chrome do not want to POST back model with value user set.

    Confusing thing is when I use jqx-date-time-input I get post-backed date value whiteout any problems.

    Is there any tip why I can’t bind number input to model.

    jqx-number-input bind to model #95792

    admin
    Keymaster

    Hi Admir,

    The “name” attribute defines whether the value is submitted with post back or not. The logic in the number input is the same as in the other inputs. We will have to investigate again.

    Regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.