Hello,
I want to set max length for igNumericEditor() as available in igTextEditor(). But as per the igNumericEditor API document MaxLength property is removed for igNumericEditor(). so what can i do for setting MaxLength for igNumericEditor().
Code:
$("#Field_Name").igTextEditor({ inputName: Field_Name, width: "100%", maxLength : 10});
Thank You
Karthikeyan Rajakumar
Hello Karthikeyan,
Currently I am working on it. I am discussing this matter with the developer who is responsible for igNumericEditor control. I will provide you an update when I will get further information from him.
Sincerely, Divya Jain Associate Software Developer
Hello Divya Jain
Thank You, I'll be waiting for your reply.
Regards
After further investigation and discussion with the team I found to get Max Length ,you can set maxValue peroperty for example if you want to set max length to 5 you can set maxValue to 99999 , It validates after loss of focus. You'll see the validation error message after lose the focus and it will revert to 99999 if something longer is entered.
Your code would look like :$("#numericEditor").igNumericEditor({ buttonType: "spin", dataMode: "int", maxValue: 99999, minValue: 0, width: 190 }); $("#maskEditor").igMaskEditor({ inputMask: "99999" });
If you want to prevent the editor from allowing more input, use an igMaskEditor.
I have created a sample application to test this scenario ,please find the attachment and let me know if I may provide you further assistance.