ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: mlyons on February 03, 2017, 01:27:47 am
-
If I set the DataType on the ColumnModel to float it won't let me enter negative numbers. Is there a way around this without using RegEx?
-
negative numbers can be entered when dataType is either "float" or "integer".
Example: Freight column in https://paramquery.com/demos/editing_custom
Just remove the validation:
validations: [{ type: 'gte', value: 1, msg: "should be >= 1"}],
-
The issue isn't only the validation. If I want to enter "-100", I have to enter in the "100" and then backspace to the beginning and add the "-". I can't start out by typing the "-" first. Is there a way around this?
-
Is this the expected behavior with your grid?
-
You may need to upgrade to v2.2.0
I can enter "-" first in Freight column in this example: https://paramquery.com/demos/editing_custom
-
RESOLVED - with upgrade
I found that with the free version of the grid, I could enter the negative if I typed fast. If I hit the "-" and then waited a breath before typing a numeral it removed the negative. If I typed fast enough it worked.
We upgraded to the pro version and with no code changes everything started working correctly as in your demos.
-
That's a peculiar phenomenon. I haven't encountered. Negative number is also normally appearence.Could you copy your code here?