hello
please help me!
i have an numeric editor. i want to change value on event keydown but i don't know how to
here is my code
$(document).delegate("#cpsngIssueAmt", "ignumericeditorkeydown", function (evt, ui) { var code = evt.originalEvent.keyCode; if (code == 77) { var tmpValue = $("#" + ui.owner.options.inputName).igNumericEditor('value'); if (tmpValue != undefined && tmpValue != null && tmpValue != "") { $("#" + ui.owner.options.inputName).igNumericEditor('value', tmpValue * 1000); } } });
i wish when user press 'm' and then i set the numeric editor value = current value * 1000. but nothing happends
can you help me
thank you very much!
sorry
you did not understand my problem
i describe it again
please get clearly
following your suggestion in the previous artical i upgated to 15.2.2146. and that function had existed in you libradry so i remove my code from event 'ignumericeditorkeydown'. i don't need any code to generate 000. and it work fine but have some problem
1. if the editor is nothing or =0. after that i enter a number and then i press m but it return the value 0
2. i assume that i have 5000. then i enter another number to the editor ex: 6. now, value of editor is 6. then i press 'm'. now, value in the editor is 5000000?
please tell me how to fix this problem.
thanks you very much!
Hello Cuong Tran,
I have created a support case for you with an ID of CAS-170654-F6S2N0. The matter has been determined to be a development issue and has been logged in our tracking system with ID: 215590.
I will leave this case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “Account” tab on our website, selecting "My Support Activity" and then this support case will be listed there. Then, you may select the "Development Issues" tab to view details of this development issue.
As a temporary workaround, you can call blur() and focus() to update the value, then use a setTimeout with a delay of 0 milliseconds to get the correct value. See the following code for example:
$(document).delegate("#editor", "ignumericeditorkeydown", function (evt, ui) { var tmpValue, code = ui.key; if (code == 77) { ui.owner.element.blur(); ui.owner.element.focus(); setTimeout(function() { tmpValue = ui.owner.element.igNumericEditor('value'); if (tmpValue != undefined && tmpValue != null && tmpValue != "") { ui.owner.element.igNumericEditor('value', tmpValue * 1000); } }, 0); }});
Please let me know if you have any questions.
hi
another problem
on initially if value of editor = 0 or = null then enter the value after that press 'm' then i save 0 value
thanks you
thanks you very much.
it works fine after the newest vesion was instaled
but i saw another problem.
after i press 'm' then i changes value to other number and then i recieve the previous number after i pressed 'm'
example
i enter 5 then press m. then i remove all number then i press 6 then i press m. i will recieve 5000000. are there some thing wrong?
thank for your helper.
Hi Cuong Tran,
Please make sure you are referencing the 15.2.20152.2146 scripts after installing the bi-weekly build.
I have attached a working sample that references the 15.2.20152.2146 scripts. When I open the page, I click in the igNumericEditor to give focus to the widget. Then, I press "M" and the value changes from 5 to 5000.
If you need further assistance with this, please let me know.