Hi,
I would like to set up a UltraNumericEditor with a MaskInput like {double:10.10} (no negative numbers)
The user should be able to set something like 1,000.9876543219
If a users sets a Value of 10 I only want to see 10, if he enters 20.5 I only want to see 20.5, but with this Mask I see 10.0000000000 or 20.5000000000. I also tried n,nnn,nnn,nnn.nnnnnnnnnn and #,###,###,###.########## but with # I must enter 10 times 0 otherwise I'm unable to leave the control.
Any tip how to set the MaskInput, so it is readable and displaying the minimum of digits would be great.
Regards,
Chris
Hi Chris,
There's no way to eliminate trailing zeroes. Perhaps you would be better off using UltraTextEditor and validating the value instead of using a Masked Input control like UltraNumericEditor.
OK thank you for the quick response. I will validate my textbox with an regex then.
Hi Mike,
I am now having to go through and strip out all of the UltraNumericEditors because of them not hiding the trailing 0's. Any chance of this becoming available in a future release?
Matt
Please note:
Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback.
If you would like to submit a feature request for NetAdvantage, please visit the following page on our website:https://ko.infragistics.com/my-account/feature-request/
Hi Matt,
Thank you for your patience.
According to our documentation, the MaskInput Property, when inputting data, placeholder characters are displayed, and the user can only replace a placeholder with a character that is of the same type as the one specified in the input mask. This indicates that there is no particular way to use the MaskInput property to enable the behavior you are requesting. As mentioned by Michael Saltzman, the UltraNumericEditor is a Masked Input control and it may be best to utilize an UltraTextEditor and validate the value instead.
More information about the MaskInput Property can be found in our online documentation by clicking here.
Please let me know if you have any questions regarding this matter.