I am trying to use the RadMaskedNumericInput control and need to allow the user to enter a negative sign at the beginning of their input. I have not been able to figure out the correct Mask or FormatString for this. I also have not been able to find any documentation of how to use the FormatString property. Any help or an small example would be greatly appreciated.
Alan
Alan
6 Answers, 1 is accepted
0
Eric
Top achievements
Rank 1
answered on 21 Oct 2011, 06:07 PM
I am running into a same scenario.
I have found that if you type your Number FIRST, then hit the minus key "-" that it will show as a negative.
It looks like the "-" toggles it between Negative and Positive
but NOT if the entire amount is Selected and NOT before your type your amount
So you have to do it backwards.
Telerik, Any setting that would allow for people to type a "-200" would be appreciated.
I have found that if you type your Number FIRST, then hit the minus key "-" that it will show as a negative.
It looks like the "-" toggles it between Negative and Positive
but NOT if the entire amount is Selected and NOT before your type your amount
So you have to do it backwards.
Telerik, Any setting that would allow for people to type a "-200" would be appreciated.
0
Alan
Top achievements
Rank 1
answered on 21 Oct 2011, 06:34 PM
Eric,
I had this same issue when I was using the RadMaskedTextBox and was to fix the issue by setting the Mask = "f" instead of "d" however "f" is not a valid option for the RadMaskedNumericInput.
In your setup what are you using for your mask and formatstring for the RadMaskedNumericInput
Alan
I had this same issue when I was using the RadMaskedTextBox and was to fix the issue by setting the Mask = "f" instead of "d" however "f" is not a valid option for the RadMaskedNumericInput.
In your setup what are you using for your mask and formatstring for the RadMaskedNumericInput
Alan
0
Eric
Top achievements
Rank 1
answered on 21 Oct 2011, 08:08 PM
Here is my Xaml:
Hope it Helps
<
telerik:RadMaskedNumericInput
SelectionOnFocus
=
"SelectAll"
UpdateValueEvent
=
"LostFocus"
Value
=
"{Binding Total, Mode=TwoWay, ValidatesOnExceptions=True }"
Mask
=
"#7.2"
TextMode
=
"PlainText"
AutoFillNumberGroupSeparators
=
"False"
TabNavigation
=
"Local"
/>
Hope it Helps
0
Hi Eric and Alan,
Petar Mladenov
the Telerik team
You can test your applications with the latest internal build (you can download it from your account pages at www.telerik.com). We recently fixed the issue from the following scenario: first minus key is pressed and then the value is typed.
As for the other "NOT" from the Eric's first post, Eric, could you please let us know the exact steps you perform in reproducing this because we are not able to see such behaviour in our demos or sample solutions. Thank you in advance.
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Chris
Top achievements
Rank 1
answered on 22 Dec 2011, 09:40 PM
0
Hi Chris,
Petar Mladenov
the Telerik team
Could you please re-send your message since we see it empty?
Kind regards,Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>