This is a migrated thread and some comments may be shown as answers.

RadMaskedNumericInput control can not enter negative values

6 Answers 179 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 20 Oct 2011, 05:25 PM
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

6 Answers, 1 is accepted

Sort by
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.
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
0
Eric
Top achievements
Rank 1
answered on 21 Oct 2011, 08:08 PM
Here is my Xaml:
<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
Petar Mladenov
Telerik team
answered on 24 Oct 2011, 02:38 PM
Hi Eric and Alan,

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.

Kind regards,
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
Petar Mladenov
Telerik team
answered on 27 Dec 2011, 08:32 AM
Hi Chris,

 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 >>

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Alan
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Alan
Top achievements
Rank 1
Petar Mladenov
Telerik team
Chris
Top achievements
Rank 1
Share this question
or