Hello,
I have migrated my application from 2014 version of controls to 2016.1 version and I have used igNumericEditor in multiple screens and also in the Grid Add Row. After migrating to new version copy Paste has stoped working in all the screens including grids.
One more thing is when I disable ajax post to server from my javascript this copy paste starts working. I am not sure if this disabled functionality of Paste is bacause of any security feature of new version.
Pls share your thoughts as I m blocked with this.
Thanks,
Parag Dave
Hello Vivek,
Thank you for using our community!
I’ve created a code sample in order to investigate your case. When I am pasting a valid value in the editor it is working fine, if I am pasting an invalid value, for example “- 3” instead of “-3”, the value of the editor is reverted. You could check if the value you are coping is valid.
In my opinion this behavior is related to the following issue:
https://github.com/IgniteUI/ignite-ui/issues/504
You could add comment that it is reproducible in igNumericEditor, too.
Please do not hesitate to contact us if you have more questions regarding this issue.
Regards,
Aneta Gicheva,
Infragistics
Hi Aneta,
Thanks for your reply.
I am using igNumericEditor like below, and paste valid numeric values. However the ValueChanging event is not fired and the value reverts to the previous value. Strangly if i paste invalid value it remains in the textbox and raises the ValueChanging event and throws error invalid value. I am totally confused with this behaviour.
HTML Contol:
<input id="txtFixedDollar_@(Model)" class="inputbox4 msalloc-fix-igTextEditor" style="width:100%" type="text" value="" tabindex="@(Model)85">
Instance of igNumericEditor:
var fdField = $('#txtFixedDollar_' + i);
fdField.igNumericEditor({ maxLength: msalloc.FixedDollarMaxLength, maxDecimals: 2, minDecimals: 2, maxValue: msalloc.FixedDollarMaxValue, minValue: 0.00, value:0.00,dataMode: 'decimal', valueChanging: valueChangingHandler(fdField) });
Value changing Event:
var valueChangingHandler = function (editorField) { return function (evt, ui) { if (ui.newValue == "5e-324" || ui.newValue == undefined || ui.newValue == false || ui.newValue == null || ui.newValue == '') { ui.newValue = 0.00; editorField.val("0.00");} else { editorField.val(ui.newValue.toFixed(4).toString()); } }; }