Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1175
[BUG] igNumericEditor doesn't honor set value by jQuery
posted

v17.2 but I tried it on the latest and I get the same issue.

I set the value of a text input via jQuery.  Then I declare the input as an igNumericEditor.  The value set doesn't carry over so when my form is posted it doesn't contain the value.  It comes over as blank.

<input type="text" id="field" name="field" />
<button onclick="javascript:showValue();">Show Value</button>


<script type="text/javascript">
$(function () {
    $("#field").val(10);

    //$("#field").igNumericEditor();
});

function showValue() {
    alert($("#field").val());
}
</script>

The value should be carried over when initializing a control but it does not.

Parents
No Data
Reply
  • 280
    Offline posted

    Hi,

    Thank you for contacting us!

    In the  attached file there is a sample code with version 17.2 of Ignite UI for JavaScript  that initializes the value of the igNumericEditor  with the value of the predefined input.
    I used the rendering event to accomplish this.

    Please, take a look at it and let me know if you have any further questions.

    igNumericEditorSample.zip

Children