I have an ultranumeric editor who has the following properties:
MaskDisplayMode: IncludeLiterals
MaskInput: nnn.nnnn\%
NullText: 0
Numeric Type:Decimal
Min value: 0
Max value :100
on the intialize, I am setting each of the numeric text boxes .datafilter =new PercentageDataFilter
Issue I am haviing is that when the user types in .22 and tabs out, the numeric text box changes that to 0 which I dont want.
How can I stop that from happening?
Thanks for your response. Let me know if you have any questions.
Regards
Yes. I solved the issue by using a binding object and on the format and parse event, I would convert the values to a decimal or %. So we ended up not using the PercentageDataFilter.
Thanks again for the help.
Have you been able to resolve your issue ? Let me know if you have any questions.
Thanks for the modification in the sample. I was able to reproduce your issue. The mentioned behavior is expected because:
Example: Let`s say that we want to type 0.1 value
1. Immediately after we are typing 1 after decimal point in the editor, the Convert() method is called and fall in the "EditorToOwner" case. By this way our new value will be 0.001.
2. When we leave the editor ( UltraNumericEditor ) we call again our Convert() method and fall in "OwnerToEditor" case. At that moment our value is 0.001. Than we multiply by 100 and new value will be 0.1 After converting to Integer, the new value will be 0 (zero)
Please take a look at the attached sample and video file for more details and let me know if you have any questions.
Please see the attachment