jQWidgets Forums
jQuery UI Widgets › Forums › Editors › NumberInput › jQWidgets 3.7.1 Spin Button Issue
Tagged: Number Input, numeric input
This topic contains 7 replies, has 3 voices, and was last updated by Peter Stoev 10 years ago.
-
Author
-
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta name=”keywords” content=”jQuery Input, Number Input, Currency Input, Percentage Input, Floating-Point Input, Decimal Input, jqxNumberInput” />
<meta name=”description” content=”The jqxNumberInput widget allows you to edit currency, percentages and any type of numeric data. The edited data can
be presented in various formats. Other built-in capabilities are customizable number of digits and decimal digits, currency symbol’s string and position, group and decimal separator character” />
<title id=’Description’>The jqxNumberInput widget allows you to edit currency, percentages and any type of numeric data. The edited data can
be presented in various formats. Other built-in capabilities are customizable number of digits and decimal digits, currency symbol’s string and position, group and decimal separator character.</title>
<link rel=”stylesheet” href=”../../jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”../../scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”../../scripts/demos.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxnumberinput.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxbuttons.js”></script>
<script type=”text/javascript”>
$(document).ready(function () {
// Create jqxNumberInput
//$(“#numericInput”).jqxNumberInput({ width: ‘250px’, height: ’25px’, spinButtons: true });
$(“#numericInput”).jqxNumberInput({
width: ’80’,
height: ’25px’,
decimalDigits : 0,
min: 1, max: 16,
spinButtonsStep: 1,
inputMode: ‘simple’,
spinButtons: true,
spinMode: ‘simple’
});// Create Percentage Input.
$(“#percentageInput”).jqxNumberInput({ width: ‘250px’, height: ’25px’, digits: 3, symbolPosition: ‘right’, symbol: ‘%’, spinButtons: true });
// Create Currency Input.
$(“#currencyInput”).jqxNumberInput({ width: ‘250px’, height: ’25px’, symbol: ‘$’, spinButtons: true });
// Create Disabled Input.
$(“#disabledInput”).jqxNumberInput({ width: 250, height: 25, disabled: true, spinButtons: true });
});
</script>
</head>
<body class=’default’>
<div id=’jqxWidget’ style=”font-size: 13px; font-family: Verdana; float: left;”>
<div style=’margin-top: 10px;’>
Number</div>
<div style=’margin-top: 3px;’ id=’numericInput’>
</div>
<div style=’margin-top: 10px;’>
Percentage</div>
<div style=’margin-top: 3px;’ id=’percentageInput’>
</div>
<div style=’margin-top: 10px;’>
Currency</div>
<div style=’margin-top: 3px;’ id=’currencyInput’>
</div>
<div style=’margin-top: 10px;’>
Disabled
</div>
<div style=’margin-top: 3px;’ id=’disabledInput’>
</div>
</div>
</body>
</html>Hi All,
Updated Latest Version: jQWidgets v3.7.1. Previously I was using jQWidgets v3.5.0.
when I using inputMode: ‘simple’, decimalDigits: 0 mode, like this:
$(“#jqxNumberInput”).jqxNumberInput({
width: ’80′,
height: ’25px’,
decimalDigits : 0,
min: 1,
max: 16,
spinButtonsStep: 1,
inputMode: ‘simple’,
spinButtons: true,
spinMode: ‘simple’ });and select all numbers in the box, type any digit, caret will jump.
Test Scenario:
0 is set initially,
I want to type 2,
So I selected the values in box, and typed 2,
but result as 20But In jQWidgets v3.5.0, the above test Scenario resulted as 2 [what expected]
How can I resolve this issue. IS this a bug.
Regards,
Mullai MalarHi mullai.b,
We will check whether something requires update from our side. Thanks for feedback!
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Thanks for a Quick Response. We have Used jqxNumberInput in many places.
Users using Web Page is facing difficulties while changing the values [0 getting appended at last].Waiting for your Feedback, to fix the above issue…..
Regards,
Mullai MalarHi,
we are currently trying out jqwidgets and also came across this.
In another thread it is stated that it is “by design”:
http://www.jqwidgets.com/community/topic/jqxnumberinput-issue-in-inputmode-simple-3-6-0/But I cannot figure out any relevant use case for this design.
One possible work-around is described on the link below (using “advanced” with space as groupSeparator) but I would indeed consider it a glitch.
https://www.jqwidgets.com/community/topic/the-caret-jump-to-the-second-digit-when-type/A simple fiddle to reproduce:
http://jsfiddle.net/3bLpzms9/7/Select the inital “0”, type “1” and you will end up with “10” while “1” was expected.
Regards,
Stefan Norlin
Infoflex ConnectHi JQWidgets Team,
Is there any updates on the above issue that has been addressed.
Regards,
Mullai MalarHi JQWidgets Team,
Is there any updates on the above issue that has been addressed. Please provide us when this issue will be resolved.
Regards,
Mullai MalarHi Mullai Malar,
As you see on our website, the current version is still 3.7.1
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.