jQuery UI Widgets › Forums › Grid › Positive values could not be changed in jqxNumberInput, when negative value are
Tagged: #numberinput, editor, grid, jqxGrid ;, jqxnumberinput, minus, negative, number, Number Input, positive
This topic contains 5 replies, has 3 voices, and was last updated by Dimitar 6 years, 6 months ago.
-
Author
-
April 27, 2015 at 9:18 am Positive values could not be changed in jqxNumberInput, when negative value are #70284
Hi,
I have Problem in changing Negative number to Positive number.
Enter the Negative value (e.g: -1.00) in jqxNumberInput control and Now try to Edit the positive values after editing to negative values and observe, It shoulnt allow for Positive Number. It wont allow to delete the negative sign.
Please suggest me to sort out this problem.
Thanks in Advance
Iyanar kApril 27, 2015 at 9:40 am Positive values could not be changed in jqxNumberInput, when negative value are #70286Hi Iyanar k,
The minus sign can be “deleted” by pressing the minus key again. This way a number can be toggled between a positive and a negative value.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/April 28, 2015 at 12:10 pm Positive values could not be changed in jqxNumberInput, when negative value are #70373Hi Dimitar,
It is working but user point of view it looks quite complicated to know this. Some other way to change it as positive number ??
Is there any way to break and allow Pressing Delete Key or Backspace key to be working?
Thanks
Iyanar KApril 28, 2015 at 12:42 pm Positive values could not be changed in jqxNumberInput, when negative value are #70375Hi Iyanar K,
This is the expected behaviour of the widget. Unfortunately, it cannot be altered. If you wish, you can use the default text editor instead (e.g. the “Quantity per Unit” column in the demo Default Functionality).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/June 5, 2018 at 1:38 am Positive values could not be changed in jqxNumberInput, when negative value are #100473Hi,
i resolved this problem with applying the event “valueChanged” by testing if the value is negative the minus key will be pressed dynamically.numberInput.addEventHandler(‘valueChanged’, function (event) {
if (numberInput.value.toString().indexOf(‘-‘) > -1) {
(numberInput.value.toString().match(/-/g)).length > 1 ?
$(‘#’ + selector + ‘>input’).trigger($.Event(‘keypress’, { keyCode: 109 }))
: null;
}
});Best regards,
MohamedJune 6, 2018 at 9:40 am Positive values could not be changed in jqxNumberInput, when negative value are #100505Hi Mohamed,
Thank you for your contribution.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.