I have a numeric editor and I would like to define maximum lengths for both the whole number portion and the decimal portion of the number. I see the maxLength property, maxValue property, and the maxDecimals property, but they don't seem to be able to accomplish this though.
What I want is to be able to say my max overall value (just as an example) is 99999.99. I set the maxDecimals = 2, maxLength = 8 (one for each number and one for the decimal, otherwise I can't type it all in), and maxValue = 99999.99. When I do this, I am able to type in 12345678. When I tab out, the editor changes the value to 99999.99, but I don't even want the user to be able to type in that value in the first place.
What I would like to be able to do is define a max whole number length = 5, and max decimals = 2, and have the editor only allow me to type in up to 5 numbers before i have to put a decimal value up to 2 digits.
Is this possible?
Hello Ryan,
Currently, the igNumericEditor doesn't support the separation of max lengths between whole number and its decimal value and has been determined as a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
As a custom solution, you should be able to use the KeyUp event to set the "reset" the value of the editor when it meats a condition that you set.
Please let me know if you have any questions regarding this matter.