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

Negative 0

1 Answer 32 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Angel
Top achievements
Rank 1
Angel asked on 12 Nov 2012, 11:09 PM
Just got a negative 0 in the RadMaskedNumericInput control its a minor error I got by taking away quantities from its value until it became 0 when it got to 0 it showed the negative sign wich shouldnt :D

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 15 Nov 2012, 03:02 PM
Hi Angel,

This behavior is by design. We implemented it after we received a lot of feature requests to allow -0 as a valid value of the control, since in many scenarios the users first enter the '-' sign and then start typing a number. Also, there are scenarios when you tab back in a MaskedInput with negative value, and you may need to enter - 0.12, so entering -0 in this scenario is also an expected behavior. Basically you can change the sign of a value in the MaskedNumeric/CurrencyInput by hitting the '-' sign.

Also the minus sign can be removed along with the value of the control, on clearing the content through the ClearButton.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Angel
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or